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

Vishnoi, Astha 140 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.
10,649 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,126 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Nandan Hegde 29,891 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

  2. Sourabh Gupta 715 Reputation points Microsoft Vendor
    2024-02-17T13:12:52.2933333+00:00

    Hi Vishnoi, Astha, Thanks for reaching out. You can use the REST API to get the count of users via Power automate: The Rest Api end point is: https://graph.microsoft.com/v1.0/groups/{id}/members/microsoft.graph.user?$count=true As long as it has the necessary permission on the Entra ID to query it. You can refer to following documentation for more details. https://learn.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http. If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments