Graph API | Get user filter

Abhay Chandramouli 1,056 Reputation points
2022-11-01T13:55:00.133+00:00

Hi
I have a custom attribute in ADB2C called extension<tenantID>custom

I want to /GET : users having extension<tenantID>custom = 12341

Please help me acheive this

Microsoft Security Microsoft Entra Microsoft Entra External ID
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 46,371 Reputation points
    2022-11-02T02:38:10.12+00:00

    Hi @Abhay Chandramouli

    It should be the b2c-extensions-app id instead of the tenant id. Use this API endpoint to list the users who have the custom attribute:

    https://graph.microsoft.com/v1.0/users?$filter=extension_{appId-without-hyphens}_{extensionProperty-name} eq '12341'  
    

    256238-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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