首页 > 解决方案 > microsoft graph api中的用户唯一身份

问题描述

我正在使用下一个端点获取“https://graph.microsoft.com/v1.0/users/?$select=id, displayName, mail, userPrincipalName” 根据文档: https://docs.microsoft。 com/en-us/graph/api/resources/user?view=graph-rest-1.0没有关于用户资源类型 的唯一邮件属性的任何信息。

mail String The SMTP address for the user, for example, "jeff@contoso.onmicrosoft.com". Supports $filter.

问题:是否有可能获得两个或更多用户(具有不同的 id)和相同的邮件属性?

标签: microsoft-graph-api

解决方案


用户邮件属性应该是唯一的。

当您尝试创建具有相同邮件属性的新用户时,您将收到以下错误消息。

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

推荐阅读