How to sync organization related info to custom database

Hi,
We’re trying to use Auth0 with a custom database. The basic user info can be directly synced to our DB now, but how can we sync the org data, like org info, members, and roles?

I understand we can write business logic code to call Auth0 management API, meanwhile, insert such data into our DB, is there exist convenient ways to do this?