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 / Filter group membershi...
Power Apps
Answered

Filter group membership based on Department

(0) ShareShare
ReportReport
Posted on by 116

I have a requirement for my app as follows:

 

There is an Office365 group containing a list of people with approval authority from across the organization.

I need to create an approvers list field in my app that only displays people from that group whose department matches that of the current user.

 

Is there any way this can be achieved? The Office365Group.ListGroupMembers function does not appear to return the department, so can't just run a simple filter on the results.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,275 Most Valuable Professional on at

    Hi @rdorman ,

    This blog of mine may be useful - you simply need to put the approvers in a Group of their own.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • CU16050836-1 Profile Picture
    116 on at

    Hi @WarrenBelz ,

     

    Thanks for your response. Unfortunately this does not answer my question.

     

    I do already have a group of approvers. But it contains approvers from all branches of the organisation.

     

    My PowerApp needs to be able to filter that group to only the approvers from the branch that matches that of the current user. 

     

    Ideally we don't want to have to create a group for each branch as that is 18+ groups to then have to maintain the membership for.

  • Verified answer
    WarrenBelz Profile Picture
    156,275 Most Valuable Professional on at

    @rdorman ,

    That is why I suggested they need their own Group. Very messy (and I have not tried it), but you would need to get the Group membership and then their Departments with Office365Users and filter on that.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard