Can you get a users email address from the list users API call?

Jump to solution
l_dellar
Community Participant

Hi

We've been trying to get the email address field within the list of users API call:

/api/v1/accounts/:account_id/users

The User Objects returned in this list do not include the email address within that object by default, in the documentation it lists email address as optional so is only shown in certain API calls so presumably this doesn't include this API call, so we wondered why that is?

We want to return this field as part of the user objects in the list so that we can check if email addresses need to be updated from our records system, this currently would require us to list users then check each users profile via a separate API call and then update it this seems unnecessary when dealing with multiple 1000's of user records.

Is there anyway we can get the email address to be returned as part of this one call.

Thanks

Labels (1)
1 Solution
MattHanes
Community Champion

Try adding

?include[]=email

at the end of the URL.
/api/v1/accounts/1/users?include[]=email

View solution in original post