B2C graph api list contacts can't use userPrincipalName

Đức Tri Bùi Quang 5 Reputation points
2023-05-20T07:31:10.7533333+00:00

Screenshot 2023-05-20 at 14.23.55

When I call user/47e99b5e-7457-4139-be77-7e24835e7dd9 I got this data. and then we call users/{id| userPrincipalNam}/contacts by using userPrincipalName: '******@thegeartest.onmicrosoft.com' they got invalid.

previously I call the contacts by using the profile ID but it cannot call via by profile id anymore ? is there any problem ? or the config must have beside the contacts.read.all ?

Screenshot 2023-05-20 at 14.27.13

How can I call list contacts ?

and by the way, the profile which got ID I calling in application way is different than the way I call in normal, why ?

Microsoft Security | Microsoft Graph
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.