0
votes

I'm using the next endpoint for getting "https://graph.microsoft.com/v1.0/users/?$select=id, displayName, mail, userPrincipalName" According to docs: https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0 there is no any info about unique mail property for user resource type.

mail String The SMTP address for the user, for example, "[email protected]". Supports $filter.

Question: is it possible to get two or more users (with different ids) and the same mail property?

1

1 Answers

0
votes

The User mail property should be unique.

You will get the following error message when you try to create a new user with the same mail property.

"error": {
        "code": "Request_BadRequest",
        "message": "Another object with the same value for property proxyAddresses already exists.",