Get organisation users using management api does not return some user fields

I am getting on organization users through the management API using the organization ID. This works fines, however, the ‘email_verified’ field for each user is not returned and i need to use it for a logic. Below is the sample of the returned object;

[
{

        "user_id": "auth0|some-user-id",

        "email": "fugnolaydsdi@vusra.com",

        "picture": "some-url",

        "name": "AYUBA DAUDA"

    }
  {
        "user_id": "auth0|some-user-id",

        "email": "fugnolaydsdi@vusra.com",

        "picture": "some-url",

        "name": "AYUBA DAUDA"

    }

]

I need it to include the ‘email_verified’ field, please how do i go about this

Hi @daudaa,

Thank you for reaching out to the Auth0 Community!

I understand that you would like to get the email_verified property for users in a specific organization.

First, I’d like to clarify that the Get members who belong to an organization endpoint will only return the attributes you observed, namely name, user_id, email, and picture.

To get the email_verified attribute, you’ll need to call the Get a User endpoint and pass the ID of the user from that particular organization.

Doing so will allow you to abstract the email_verified attribute of the organization user and use it for your custom logic.

Please let me know if there’s anything else I can do to help.

Thank you.

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