web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get SharePoint Group M...
Power Apps
Answered

Get SharePoint Group Membership in App to use for visibility of controls

(0) ShareShare
ReportReport
Posted on by 1,088

When a SharePoint site is created, by default three SharePoint groups get created... owners, members, viewers...

 

I wrote a flow today which can query and return the members of the owners group just fine:

Screenshot 2021-09-01 221415.png

 

But I would prefer to just do this right in Power Apps on Start, would like to get the membership into collection or variable or something.

 

Sure, I could call the flow and return the data, but then that will slow things down waiting.

 

So I played a lot today trying to get this into Power Apps.  Tried using Office 365 groups... couldn't get that to work, not sure it can read SharePoint groups.

 

So looking to see if others on the forum have any ideas for best way to query and get this info.

 

Thanks,

Terry

 

 

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Mattw112IG ,

     

    If using only default connectors to achieve your need, the approach is exact what you mentioned in the post. But you could implement this feature with the help of a custom connector as well.

     

    Please refer to below thread in which talks about an opposite scenario but basically the steps are the same within your own scenario:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Return-only-members-Office365Groups-ListGroupMembers/td-p/678975

     

    Step1: get all the members through Office365Groups.ListGroupMembers().

    Step2: use your custom connector to get all owners in that group.

    Step3:use the owner list obtained in the step2 as a filter condition to filter the member list obtained in the step1.

     

    I think these links will help you a lot:

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard