Forum Discussion
dhruvilp
Aug 04, 2021Copper Contributor
Get recently added / updated users from Azure Active Directory
I want to fetch all the users from Azure Active Directory who are recently modified/added using Graph API.
I tried to search for the lastModified, or Modified property which returns the last modified date on which the filter can be applied but did not find any. (Ref: User Properties)
Is there any way to achieve the above requirement?
My goal is to get the users modified in a specific time frame and perform the business logic.
- Take a look at delta queries: https://docs.microsoft.com/en-us/graph/api/user-delta?view=graph-rest-1.0&tabs=http
- EricStarkerFormer Employee
Hello! You've posted your question in the Tech Community Discussion space, which is intended for discussion around the Tech Community website itself, not product questions. I'm moving your question to the Azure Active Directory space- please post Azure Active Directory questions here in the future.
- Take a look at delta queries: https://docs.microsoft.com/en-us/graph/api/user-delta?view=graph-rest-1.0&tabs=http
- dhruvilpCopper Contributor
I tried using delta queries but it returns all the users.
Also, I am not getting the nextLink or the deltaLink in the initial response.
Below is my code.
var pagedCollection = await graphClient.Users .Delta() .Request() .Select("userPrincipalName,jobTitle,mobilePhone") .GetAsync();
Below is the response.
Am I missing something here?