$ expand = manager不会扩展经理

时间:2019-05-29 17:19:39

标签: odata microsoft-graph

在测试https://graph.microsoft.com/v1.0/users/<my-email>/manager时,我收到以下响应(我将值替换为“ 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时,它没有显示管理器:

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参数聘请经理?

1 个答案:

答案 0 :(得分:3)

我相信今天它可以在Beta版中使用。尝试 string strURL = http://www.somewebsite.com/folder/filename; protected void btnBKS_Click(object sender, EventArgs e) { pnlPDF_BKS.Visible = true; ifmPDF_BKS.Src = strURL + ".pdf"; } protected void btnADD_Click(object sender, EventArgs e) { pnlPDF_HIN.Visible = true; ifmPDF_HIN.Src = strURL + "_ADD.pdf"; }