Getting numbers of users present in a group of Entra ID through power automate

Vishnoi, Astha 60 Reputation points
2023-11-02T08:10:49.9166667+00:00

Is it possible to get the count of users present in a group of Entra ID through flow by using Power Automate?

Is there any action through which we can retrieve such functionality?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,114 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
996 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 27,241 Reputation points MVP
    2023-11-02T08:15:11.73+00:00

    Hey,

    You can use the REST API to get the count of users via POwer automate :

    GET https://graph.microsoft.com/v1.0/users/$count

    https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http

    As long as it has the necessary permission on the Entra ID to query it

    0 comments No comments