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 / Retrieve current user'...
Power Apps
Answered

Retrieve current user's AAD Group ID - How?

(0) ShareShare
ReportReport
Posted on by 30

 Hi all,

I have a Power App Canvas which works with a SQL database.

I'm trying to create a page that presents specific table records, filtered by the user's AAD Group ID (I've got the AAD connector).

Thing is, I'm trying to retrieve the Group ID of the user who is currently logged in (automatically) with no luck (tried to use CheckMemberGroups but I'm probably doing something wrong).

Is there a way to retrieve it and then I can filter my SQL result set based on the retrieved Group ID.

Would appreciate your help.

Thanks,

Categories:
  • Verified answer
    Rahber Profile Picture
    1,935 on at

    AAD formulas in power apps are behavior formulas.

    So set this on visible of the screen.

    Set(groupIDs,AzureAD.GetMemberGroupsV2(User().Email,false))

    This will get all group IDs of the current logged in user in a variable then you can play around that specific variable to get your required group ID

     

    Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

    Thanks,

    Rahber

  • HaimOz Profile Picture
    30 on at

    Thank you @Rahber,

    I'm new to PowerApps and not across all its functionalities but your advise helped a lot.

    Appreciate your help!

     

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard