cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zdieter
Level: Powered On

Get groups I am the owner of

Hi,

 

I am trying to get all the groups I am the owner of but need more than just office groups (or I could use Office365Groups connector). I am trying the AzureAD connector but that just gets groups you are a member of not owner. Is there anything I am missing or should I create a custome connector (or is there one I can use already made)?

 

Thank you for your time.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Get groups I am the owner of

Hi @zdieter ,

Do you want to get all Groups which you are the owner of, but not only just Office 365 Groups?

 

Currently, the Office365Groups.ListOwnedGroupsV2() formula or Office365Groups.ListOwnedGroups() formula could only list all Office 365 groups you are the owner of, it could not list other types of Groups.

 

If you want to get all Groups which you are the owner of, but not only just Office 365 Groups, I afraid that there is no direct way to achieve your needs in PowerApps curretly.

 

As an alternative solution, you could consider create a custom connector based on the Microsoft Graph Rest API within your PowerApps to achieve your needs.

Within your custom connector, you may need to specify two actions -- 'List Groups' action and 'List Owners' action. Firstly, you need to retrieve all groups defined in your Org via executing the 'List Groups' action. Then based on the retrieved groups ids, execute the 'List Owners' action, check if the returned Owners list of a specific group contains yourself. If true, the collect the corresponding group into a Collection (using Collect function). I also think the ForAll function may help in your scenario.

 

More details about the ForAll function, please check the following article:

ForAll function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: Get groups I am the owner of

Hi @zdieter 

 

Office365Groups.ListOwnedGroups().value will only give you Office 365 groups

 

I dont think there is a direct option to fetch all Azure AD groups

Customer connector and graph api might be your best bet

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

Highlighted
Community Support Team
Community Support Team

Re: Get groups I am the owner of

Hi @zdieter ,

Do you want to get all Groups which you are the owner of, but not only just Office 365 Groups?

 

Currently, the Office365Groups.ListOwnedGroupsV2() formula or Office365Groups.ListOwnedGroups() formula could only list all Office 365 groups you are the owner of, it could not list other types of Groups.

 

If you want to get all Groups which you are the owner of, but not only just Office 365 Groups, I afraid that there is no direct way to achieve your needs in PowerApps curretly.

 

As an alternative solution, you could consider create a custom connector based on the Microsoft Graph Rest API within your PowerApps to achieve your needs.

Within your custom connector, you may need to specify two actions -- 'List Groups' action and 'List Owners' action. Firstly, you need to retrieve all groups defined in your Org via executing the 'List Groups' action. Then based on the retrieved groups ids, execute the 'List Owners' action, check if the returned Owners list of a specific group contains yourself. If true, the collect the corresponding group into a Collection (using Collect function). I also think the ForAll function may help in your scenario.

 

More details about the ForAll function, please check the following article:

ForAll function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,762)