$ expand = manager不会扩展经理 [英] $expand=manager does not expand manager

查看:73
本文介绍了$ expand = manager不会扩展经理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在测试https://graph.microsoft.com/v1.0/users/<my-email>/manager时,我收到以下响应(我将值替换为"HIDDEN"):

When testing https://graph.microsoft.com/v1.0/users/<my-email>/manager, I receive the following response (I replaced values with "HIDDEN"):

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#directoryObjects/$entity",
    "@odata.type": "#microsoft.graph.user",
    "id": HIDDEN,
    "businessPhones": [
        HIDDEN
    ],
    "displayName": HIDDEN,
    "givenName": HIDDEN,
    "jobTitle": "Director, Information Technology",
    "mail": HIDDEN,
    "mobilePhone": HIDDEN,
    "officeLocation": HIDDEN,
    "preferredLanguage": null,
    "surname": HIDDEN,
    "userPrincipalName": HIDDEN
}

显然可以.但是当我使用$expand尝试相同的URI时,它没有显示管理器:

Clearly it works. But when I try the same URI using $expand instead, it doesn't show the manager:

URI:https://graph.microsoft.com/v1.0/users/<my-email>?$expand=manager

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity",
    "businessPhones": [
        HIDDEN
    ],
    "displayName": "Yousef Shanawany",
    "givenName": "Yousef",
    "jobTitle": "Developer, Application",
    "mail": HIDDEN,
    "mobilePhone": null,
    "officeLocation": "US California San Jose America Center",
    "preferredLanguage": null,
    "surname": "Shanawany",
    "userPrincipalName": HIDDEN,
    "id": HIDDEN
}

如何使用MS Graph中的$expand参数获取经理?

How can I get my manager using the $expand parameter in MS Graph?

推荐答案

我相信今天它在Beta中有效.尝试GET https://graph.microsoft.com/beta/me?$expand=manager

I believe this works in beta today. Try GET https://graph.microsoft.com/beta/me?$expand=manager

这篇关于$ expand = manager不会扩展经理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆