I would like to get all user contact email in Azure DevOps.
First, I tried to use https://vssps.dev.azure.com/{{organization}}/_apis/graph/users
API to get all users. I can see all of user info, but the mailAddress
for each user is not the contact email address for each user.
Then I tried to use https://app.vssps.visualstudio.com/_apis/profile/profiles/me
to get my user profile. It did return correct info including my contact email in emailAddress
attribute
But when I tried to use https://app.vssps.visualstudio.com/_apis/profile/profiles
to get all user info, I get error
{
"count": 1,
"value": {
"Message": "The requested resource does not support http method 'GET'."
}
}
I couldn’t find any documents to indicate how I can get all user profile, including contact email from Azure API service. Does anyone have any clue for the solution?
Thanks