Aug 05 2021
04:11 AM
- last edited on
Jan 14 2022
03:25 PM
by
TechCommunityAP
Aug 05 2021
04:11 AM
- last edited on
Jan 14 2022
03:25 PM
by
TechCommunityAP
I have registered an application and provided the required permission in Azure and using that application to retrieve the modified users via delta Query.
Below is the code.
GraphServiceClient graphClient = new GraphServiceClient(Constant.ResourceUrl,
new DelegateAuthenticationProvider(async (requestMessage) =>
{
var token = await AcquireTokeneAsyncForApplication();
requestMessage.Headers.Authorization = new
AuthenticationHeaderValue("bearer", token);
}));
var pagedCollection = await graphClient.Users
.Delta()
.Request()
.Select("displayName,jobTitle,mobilePhone")
.GetAsync();
But the response does not contain the nextLink or deltaLink as mentioned in the documentation.
I can get the above links if I test the API in the graph explorer.
https://graph.microsoft.com/v1.0/users/delta
Response from Graph Explorer.
Am I missing anything here while calling the same API using C#?
Any help on this will be appreciated!