Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
3.5k views
in Power Apps by 29 37 42

I am working with a canvas app, and want to check if a user is a member of an Office 365 group named "Development" or not.
I tried with Office365Users connector with no evil!!


1 Answer

2 like 0 dislike
by 48 54 93
edited by
 
Best answer

Check if a user is part of the Office 365 group in PowerApps.

Office365Users connector will not help you in your case, you have to use the Office365Groups connector, and use Office365Groups.IsMember function to check if a user is a member of an Office 365 group.

For Example, if you want to check if the current user is a member of the Office 365 group called "Development" or not use this formula

Office365Groups.IsMember("Development", User().Email)

The Office365Groups.IsMember function will return a Boolean value of true if the user is a member of the group, or false if they are not.

If you don’t ask, the answer is always NO!
...