Forum Discussion

dhruvilp's avatar
dhruvilp
Copper Contributor
Aug 05, 2021

Get Users using Delta query does not return the nextLink or deltaLink with C# code

I have registered an application and provided the required permission in Azure and using that application to retrieve the modified users via https://docs.microsoft.com/en-us/graph/api/user-delta?view=graph-rest-1.0&tabs=csharp#example-2-selecting-three-properties.

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!

 

No RepliesBe the first to reply