我正在使用Microsoft Graph API获取用户的一些详细信息,并且我还使用AD进行身份验证和授权。
在这个应用程序中,用户在登录后将搜索一些用户并需要所有匹配搜索的用户的一些详细信息。
我使用以下用户API进行过滤查询,但是没有获得任何有关匹配用户公司名称的详细信息。
以下是相同的响应:
我需要做什么才能为我的组织用户获取公司名称?
在这个应用程序中,用户在登录后将搜索一些用户并需要所有匹配搜索的用户的一些详细信息。
我使用以下用户API进行过滤查询,但是没有获得任何有关匹配用户公司名称的详细信息。
https://graph.microsoft.com/v1.0/users?$filter=startswith(displayName,'jo')
以下是相同的响应:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users",
"@odata.nextLink": "https://graph.microsoft.com/v1.0/users?$skiptoken=X%2744537074020001000000203A636F6D7061735F766A61407465737473636F7270696F67726F75702E6E657429557365725F33386664353661362D366361612D343939332D393264642D383439633938613039393033B900000000000000000000%27",
"value": [
{
"businessPhones": [],
"displayName": "John Doe",
"givenName": "John",
"jobTitle": null,
"mail": null,
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null,
"surname": "Doe",
"userPrincipalName": "jdoe@mycomp.net",
"id": "c8f63ba1-5150-44c1-b456-468040f12345"
}
]
}
我需要做什么才能为我的组织用户获取公司名称?