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 / How to use Azure Ad Ch...
Power Apps
Answered

How to use Azure Ad CheckMemberGroupsV2

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hallo, 

 

I have a canvas application that uses the Azure Ad connector. 

I use the CheckMemberGroups to check if a person is a member of a group with the following statement: 

!IsEmpty((AzureAD.CheckMemberGroups(User().Email; ["group-id"]).Value)) 

 

This function is deprecated and so I want to use the CheckMemberGroupsV2 version. But the V2 function dosn't work like the V1 version. Even if the documentary is the same (https://docs.microsoft.com/en-us/connectors/azuread/#getmembergroups_response_v2)

I am not able to use the ".Value".

When I use the statement:

!IsEmpty((AzureAD.CheckMemberGroupsV2(User().Email; ["group-id"]))) 

the statement always evaluate to true. 

So my question is: How to use the CheckMemberGroupsV2 method to find out, if a person is a member of a group? 

 

 

Categories:
  • Verified answer
    rimatos Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    So I tested the CheckMemberGroupsV2 method in my environment, and I was able to correctly identify the groups where the user belonged to. You should do something like this:

     

    !IsEmpty(AzureAD.CheckMemberGroupsV2(User().Email,["24e48800-d0f1-46e6-b9e8-54d838d5a457"]).value)

     

     

    The difference in this method is that you should put the Value at the end of the formula, so that way it will let you know if the user indeed exists or not.

     

    An example that I used was the one in the picture bellow, where upon clicking the button, the label would be updated with the result:

     

    image.png

     

    Hope this helps you move forward! Let me know if this reply helped. 🙂

     

     

    Regards,

    Ricardo

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @rimatos, 

     

    thank you for your answer. Your reply helped me.

    The error occurend because the first version of this method uses ".Value" and the V2 uses".value".

  • westerdaled Profile Picture
    676 on at

    I am looking to use this but I am guessing that given this (Standard?) connector needs the following graph permissions:

    • Group.ReadWrite.All
    • User.ReadWrite.All
    • Directory.ReadWrite.All

    Then I guess makers are  going down the service account route ? In which case I wonder if this account just  doesn't need a E1 or E3 but just a AD P1 permissions.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard