I am using Microsoft Graph API to get some details of the user. I also use AD for Authentication and Authorization.
In this application, user, after login, will search for some user(s) and needs some details for all the users matching the search.
I hit below users api, with filters, but I am not getting any details regarding company name for matching user(s).
https://graph.microsoft.com/v1.0/users?$filter=startswith(displayName,'jo')
Below is the response for the same
{
"@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": "[email protected]",
"id": "c8f63ba1-5150-44c1-b456-468040f12345"
}
]
}
What I need to do to get the company name for the users of my organization?
