Microsoft Graph API获取联系信息

时间:2019-08-22 10:08:30

标签: azure-active-directory microsoft-graph azure-ad-graph-api

我已在Azure环境中配置了AD,并已授予权限ToExpandopublic static class Extensions { public static ExpandoObject ToExpando(this object anonymousObject) { IDictionary<string, object> anonymousDictionary = HtmlHelper.AnonymousObjectToHtmlAttributes(anonymousObject); IDictionary<string, object> expando = new ExpandoObject(); foreach (var item in anonymousDictionary) expando.Add(item); return (ExpandoObject)expando; } } 来通过图形API获取用户详细信息。我想阅读AD用户联系信息,但api仅发送documentations中提到的以下详细信息。

User.Read

Azure AD联系信息 enter image description here

要获取其余的详细信息,我是否缺少任何权限或任何配置?

1 个答案:

答案 0 :(得分:0)

您必须指定所需的属性(source)。

赞:

https://graph.microsoft.com/v1.0/users/<upn or objectId>?$select=streetAddress,state,country,officeLocation,city,postalCode,mobilePhone,businessPhones