microsoft-graph-api - 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)和相同的邮件属性?
解决方案
用户邮件属性应该是唯一的。
当您尝试创建具有相同邮件属性的新用户时,您将收到以下错误消息。
"error": {
"code": "Request_BadRequest",
"message": "Another object with the same value for property proxyAddresses already exists.",
推荐阅读
- vue.js - 如何从我的数组列表中删除 __ob__: Observer?
- serialization - 反序列化成另一个类——Spring data redis
- sql - 通过连接一个视图和另一个表创建的表所做的更改会影响基于原始表视图吗?
- python - 为什么 scipy 最小化函数返回 nan 值
- python - 如何使用 FlaskForm 在表单中获取输入文件的 mimetype?
- navigation - 带参数的 vaadin 导航
- asp.net-mvc - 检查数据库 mvc 5 中是否存在日期时间
- mongodb - MongoDB Morphia 兼容性矩阵
- mysql - 如何通过 IP 地址查询加快国家检测速度?
- windows - 如何在完成工作后关闭批处理文件的 cmd 窗口?