我已在Azure环境中配置了AD,并已授予权限ToExpando
和public 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
要获取其余的详细信息,我是否缺少任何权限或任何配置?
答案 0 :(得分:0)
您必须指定所需的属性(source)。
赞:
https://graph.microsoft.com/v1.0/users/<upn or objectId>?$select=streetAddress,state,country,officeLocation,city,postalCode,mobilePhone,businessPhones