List appRoleAssignments granted for a service principal Doesnt list all assigned users

Mohammed Rubeesh 6 Reputation points
2022-02-23T09:25:29.28+00:00

List appRoleAssignments granted for a service principal Doesnt list all assigned users.

https://graph.microsoft.com/v1.0/servicePrincipals/[ObjectID]/appRoleAssignedTo

I am trying to get all the users assigned to the enterprise application, but it doesnt list all the users.

C# Code:
var serviceAzureAppRole = (await graphClient.ServicePrincipals[azureAppConfig.ServiceEnterpriseAppResourceId]
.AppRoleAssignedTo.Request().GetAsync()).ToList();

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,061 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 42,031 Reputation points
    2022-02-24T10:36:41.803+00:00

    Hi @Mohammed Rubeesh

    It's working for me, can you test with Graph Explorer.

    177455-image.png

    ----------

    Update:

    The question has been solved, adding it to the answer:

    It is resolved. The issue was the default response size limit. Its below 50.


    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.


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.