For information, we shipped APIs for managing organization members that should facilitate your integration with the HF Hub.
They all support authentication with User Access Tokens passed as a Bearer
token.
The mutating operations require an Enterprise subscription.
HTTP GET /api/organizations/:name/members
Retrieve org member information. Includes the role of the users if the requester is a member of the organization. Includes the primary email address if the requester is an admin of the org and SSO is enabled for the organization.