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 get Azure Group...
Power Apps
Answered

How to get Azure Group in Power Apps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Guys,

 

I want to get the name of Azure Groups which I am member of. Below I will explain you more in which situation I am.

 

Currently I have a SQL table which is has a column called AZGroup. This column contains Group1, Group2 and Group3 as data.

 

In Azure Active Directory there are 3 Groups, Group1, Group2 and Group3. I am member of Group2 and Group3.

 

So what I want is that in my Gallery to filter to the column AZGroup and the Azure Groups which I am member of (Group2 and Group3). So the question is How can I get the Azure Groups dynamically to make a filter? The thing is I have more than 10 Groups in Azure and I have more than 20 members which there are member in several Groups.

 

Is there any functions or workaround thing to achieve this?

 

Thanks in advance!  

Categories:
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to filter SQL table based on the groups that you belong to ?

    If so, I suggest you use Office365 Groups connector.

    You could get the list of the groups that you belong to by using this formula:

    Office365Groups.ListOwnedGroups().value.displayName

    So you could use this to filter your table:

    Filter(tablename, AZGroup in Office365Groups.ListOwnedGroups().value.displayName)

    Here's a doc about this connector for your reference:

    https://docs.microsoft.com/en-us/connectors/office365groups/#listownedgroups_response

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-yutliu-msft ,

     

    Thanks for your response! Unfortunately I got an error when I tried the formule see you below.

     

    And also you will find my Group on Azure Active Directory.

     

    11.png

    12.png

     

    Thanks in advance!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Is there anybody else who can help me with this issue? 

     

    Thanks in advance!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-yutliu-msft ,

     

    I got now all my Groups from Azure which`s I am member of. As you can see in the attachment I have a Gallery which includes all the Groups from the current user. But I need to filter all the Items(Groups) in another gallery which will filter this to my SQL Table. So that I pick up all the items from my SQL table which matched with my Azure Groups.

     

    The formula in my another gallery which filters to my SQL table looks like this, but AllItems does not work, but if I use Selected instead of AllItems then I only get the selected value, that is not what I want. Like I said I need to filter all the Groups.

    Spoiler (Highlight to read)
    Filter('[dbo].[test1]',groups= Gallery3.AllItems.Title2)
    Filter('[dbo].[test1]',groups= Gallery3.AllItems.Title2)

     

    18.png

     

    Hopefully you can help me know!  

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I solved this problem, with the following steps.

    - Insert a button (ClearCollect(allgroups,AddColumns(AzureAD.GetMemberGroups(User().Email,false).Value,"GroupName",AzureAD.GetGroup(Value).displayName)))
    - Insert a gallery then put the result of above collaction in the gallery(allgroups)
    -Insert a gallery and then make a filter to above gallery and your source table (Filter('[dbo].[test1]',Owner in Gallery3.AllItems.GroupName))

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard