Share via

Get all AD users

kiran krishnan 20 Reputation points
2023-02-13T14:08:28.83+00:00

Hi All,

I'm using the below API to get all users from AD.

https://graph.microsoft.com/v1.0/users

A couple of users are retrieved but not all.

What did I miss?

Please help me with your input.

Thank you

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-02-16T22:27:59.88+00:00

    For other users: use the $top query:

    https://graph.microsoft.com/v1.0/users?$top=500
    
    

    Was this answer helpful?

    0 comments No comments

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.