Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Collect user's Azure AD Groups by name

(0) ShareShare
ReportReport
Posted on by 446
ClearCollect(
 MyGroups, 
 AddColumns(
 AzureAD.GetMemberGroupsV2(MyProfile.id, false).value, 
 "GroupName",
 AzureAD.GetGroup(Value).displayName
 )
);

The above formula grabs all of a user's Azure AD groups, which is great. I would like to further tweak this to only get the groups that contain a specific word, say "Employees."

 

I'm hoping that by having it run with a parameter that it would speed up this process as it currently takes 10-15 seconds to fetch this data. If this won't be the case, please let me know and I'll simply continue using this and just apply a filter to my drop down to achieve my goal.

 

Thank you!

  • Pstork1 Profile Picture
    66,015 Most Valuable Professional on at
    Re: Collect user's Azure AD Groups by name

    You could easily filter the results before storing it in a collection.  But that won't improve the performance.  I don't think there will be any way to make it run faster.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,695 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard