Share via

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

Vishnoi, Astha 165 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?

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.

Microsoft Security | Microsoft Graph
0 comments No comments

2 answers

Sort by: Most helpful
  1. Sourabh Gupta 805 Reputation points Microsoft External Staff
    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".

    Was this answer helpful?

    0 comments No comments

  2. Nandan Hegde 36,886 Reputation points MVP Volunteer Moderator
    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

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.