Overview
In this blog, we will discuss how we can get the users' information from the specific Security Group in Power Apps.
Use Case
We came across a requirement wherein we need to fetch the information from AD Security Group and need to display it within Power Apps for business logic implementation.
Example
Below is one of the Security Groups created in Microsoft 365.
Here, there are two members added to that Security Group.
In Power Apps, I need information about those two users.
Steps
Step 1
Open your Power Apps Canvas App.
First, we need to add Office 365 Groups Connector. For that,
Go to View Menu, select Data sources.
Search for “Office 365 Groups”. Select the highlighted one. Add that connector in your App.
Once the Connector is added, it will look like this.
Step 2
Open your Power Apps screen and add a button.

Write the following line of code for “OnSelect” event of the button.
- ClearCollect(MembersfromSG,Office365Groups.ListGroupMembers("6aa46539-17ab-494b-b566-4ecbfbd6f45b").value)
Now, here we will store Group member information to the Power Apps collection named – “MembersfromSG”.
The function:
Office365Groups.ListGroupMembers(“Group ID”) returns the information about all the members from that security group.
Now, how can we find that Group ID for the Security Group?
There are two ways to find this.









Vinay AyinapurapuPosted Apr 1, 2022, 7:23 PM
Good one dhruvin