Get additional fields on organization get members list endpoint

Hello,

I’d like to get additional fields such as roles, block status and last_login from response of this endpoint.
Get members who belong to an organization

Of course, get user list endpoint includes the fields.
But I could not search by organization on the endpoint.

Is there any solution?

Thank you.

Hi @sergey.r1130,

Thanks for reaching out to the Auth0 Community!

I understand you would like to get additional fields from the Management API v2 Get members who belong to an organization endpoint.

Unfortunately, as you have observed, the user_id, picture, name, and email are the only fields returned from this endpoint.

If you would like to get the roles, block status, and last_login or any other user profile attributes, you’ll need to use the Management API v2 Get a user endpoint in conjunction with the Get members who belong to an organization endpoint.

In this case, you’ll first get the user_id’s of members in an organization and then use those user_id’s to Get a user’s profile attributes.

Please let me know if there are any further questions. I’d be happy to clarify.

Thank you.

Thank you @rueben.tiow

I wanted to get required field by calling one endpoint.
Okay, I will try with binding two endpoints.

Thank you again.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.