cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

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
Community Support
Community Support

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 II
Dual Super User II

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

 

 

Community Support
Community Support

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,486)