In b2c if I want to validate the external user and for external user there is no need of user principal, then how we will validate with graph api?

Mukesh Kumar Yadav 20 Reputation points
2023-09-29T03:47:03.08+00:00

In b2c if I want to validate the external user and for external user there is no need of user principal, then how we will validate with graph api?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,447 questions
{count} votes

Accepted answer
  1. CarlZhao-MSFT 40,311 Reputation points
    2023-09-29T09:29:06.0166667+00:00

    Hi @Mukesh Kumar Yadav

    Try calling the following API to get the local user:

    https://graph.microsoft.com/v1.0/users?$filter=identities/any(a:c/issuerAssignedId eq '{user name}' and a/issuer eq '{tenant name}.onmicrosoft.com')
    

    3

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful