0
votes

I have configured an AD in Azure environment and has granted permissions User.Read and User.Read.All to get user details via graph api. I want to read AD user contact info but api send only below details as mentioned in the documentations.

 {
  "businessPhones": [
       "businessPhones-value"
   ],
   "displayName": "displayName-value",
   "givenName": "givenName-value",
   "jobTitle": "jobTitle-value",
   "mail": "mail-value",
   "mobilePhone": "mobilePhone-value",
   "officeLocation": "officeLocation-value",
   "preferredLanguage": "preferredLanguage-value",
   "surname": "surname-value",
   "userPrincipalName": "userPrincipalName-value",
   "id": "id-value"
}

Azure AD Contact info enter image description here

Any permissions or any configurations I am missing here to get the rest of the details?

1
Possible duplicate of Missing attributes on UserMarc LaFleur

1 Answers

0
votes

You have to specify the properties you want (source).

Like this:

https://graph.microsoft.com/v1.0/users/<upn or objectId>?$select=streetAddress,state,country,officeLocation,city,postalCode,mobilePhone,businessPhones