Posts

Showing posts from November, 2024

Power Apps - Check Group Membership For Groups With > 1,000 Members

Image
What There are occasions when it is useful to check inside a Canvas App whether the logged-in user is a member of a specific Security Group. This allows you to implement hide/show functionality for areas of the application that you may only want users/administrators to see. Why The standard method I've used in the past to implement this 'group membership' check is to call the following Connector/Function: Office365Groups.ListGroupMembers() Using this connector, you would first get a list of All the members of a specific security group, then you would do a Filter on that collection to check if the logged in user is one of the Members. However!  That connector only works when group membership is less than 1,000 people, if your group has more than 1,000 members, then there's a chance the app will come a cropper for some users. So below we're going to show you how to do the same check by using MS Graph API calls that all users have access to. How  Using a Graph API cal...