Attempting to get profile information using Sharepoint and Microsoft Graph api

When I try to get an email address, https://graph.microsoft.com/v1.0/meI get answers like "mail:null".

The full answer is as follows:

{
  "@odata.context": "https://graph.microsoft.com/v1.0/",
  "@odata.type": "#microsoft.graph.user",
  "@odata.id": "users/XXXXXXXXX",
  "businessPhones": ["XXXXXXXX"],
  "displayName": "XXXX XXXX",
  "givenName": "XXXX",
  "jobTitle": null,
  "mail": null,
  "mobilePhone": "XXXXXXXX",
  "officeLocation": null,
  "preferredLanguage": "en-US",
  "surname": "XXXXXXX",
  "userPrincipalName": "XXXXXXX@XXXXX.onmicrosoft.com",
  "id": "XXXXX-XXXXX-XXXXX"
}

Does anyone know why he will not return with full profile information? I am using version 1.0.

+4
source share
1 answer

(/), Graph (, ). , , , ( ). ( SharePoint), , $select = propName1, propName2 querystring. , : https://graph.microsoft.io/docs/api-reference/v1.0/resources/user. $select = * .

, officeLocation . mail (, , ). OfficeLocation null, .

, ,

+5

Source: https://habr.com/ru/post/1617103/


All Articles