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 / Power Apps connection ...
Power Apps
Suggested Answer

Power Apps connection with SharePoint

(2) ShareShare
ReportReport
Posted on by 14
I have a SharePoint list with staff and manager columns , but in some cases some staffs have more than one Manager , these managers have been put in a Microsoft 365 Group instead of listing the Managers individually 
Now in Power apps , I want the logged in User to only see records of Staffs they manage
 
How do I use Power Apps to check if the logged in user belongs to any of the groups listed in the Manager column in SharePoint 
Categories:
I have the same question (0)
  • stampcoin Profile Picture
    5,146 Super User 2026 Season 1 on at
    You may want to try powerautomate :
    from app, you get the current user email  then pass to powerautomate,  then List the owned groups, and then list group members.
    collect the members and response back to app.
    if the current user own more than 1 group, you have to use loop, for example one manager could manager mutltiple teams.
  • Suggested answer
    Robu1 Profile Picture
    1,621 Super User 2026 Season 1 on at
     
    Thank you for choosing Microsoft Power Platform Community.
     
    In Power Apps, you can check if the logged-in user belongs to any of the Microsoft 365 Groups listed in the Manager column using the Microsoft Graph API along with Power Automate.
     
    Here’s a step-by-step way to approach this:
     
    To allow logged-in users to see only records of the staff they manage in Power Apps, follow these steps:
     
    Retrieve User's Groups: Use the Microsoft Graph API or Office365Groups.ListUserGroups() to get the groups the logged-in user belongs to.
     
    Compare Groups with the Manager Column: Use Power Apps functions like Filter() or LookUp() to check if any of the user’s groups match the SharePoint Manager column.
     
    Use Power Automate if Needed: If complex filtering is required, create a Power Automate flow to retrieve the relevant records.
     
    Power Apps Example Code
    // Get groups the logged-in user belongs to
    ClearCollect(UserGroups, Office365Groups.ListUserGroups().value);
    // Filter staff records where Manager matches any user group
    ClearCollect(FilteredRecords, Filter(StaffList, Manager in UserGroups));

    This code collects the user’s groups and filters the list to display only staff members they manage.
     
    Documentation References:

    If this fixes the issue, please mark as resolved to help others with find it.
     
    Happy to help 
     
    Robu1
    SuperUser|Moderator
  • ronaldwalcott Profile Picture
    3,862 Moderator on at
    See Power Apps Get Office 365 Group Members on how to retrieve the group members.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard