Skip to content

Instantly share code, notes, and snippets.

@BobToninho
Created April 26, 2023 08:50
Show Gist options
  • Save BobToninho/033d34d8bbeeee035146edfb6a66f100 to your computer and use it in GitHub Desktop.
Save BobToninho/033d34d8bbeeee035146edfb6a66f100 to your computer and use it in GitHub Desktop.
Check if user is in a group in PowerApps
// Note: GruppidiOffice365 will vary according to your PowerApps UI language. Yes, it's ugly
Set(
varIsInGroup;
User().Email in GruppidiOffice365.ListGroupMembers("GROUP_ID").value.userPrincipalName ||
User().Email in GruppidiOffice365.ListGroupMembers("GROUP_ID").value.mail
);;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment