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 / O365 Groups connector ...
Power Apps
Answered

O365 Groups connector - all groups in org, security groups

(0) ShareShare
ReportReport
Posted on by 100

Hi all,

I'm playing around with the O365 Users and Groups connectors for the first time, and I'm not finding anything in the documentation that would allow me to get info for all users in my organization, and similarly, all groups in my organization. 

Assuming I have proper O365 admin permissions to be able to access that information directly through the admin portal, is there any way to get that data?

Edit: follow-up - ListOwnedGroupsV3 (which should give me groups I'm a member of) is only displaying M365 group names, not security groups. Is there a way we can accomplish that? 

Categories:
I have the same question (0)
  • Verified answer
    zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    a14.jpg

     

    Give gallery's item property Office365Users.SearchUser() and all the data will be displayed in gallery

  • RMDNA Profile Picture
    100 on at

    That works great, thanks. As O365.Groups doesn't have a search action, is there a method of getting all group info?

     

    As a follow-up question - ListOwnedGroupsV3 is only displaying M365 groups, not security groups. Is there a way we can accomplish that?

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Sorry i don't have enough permissions to test those. I barely get some data using this connectors.

    There is also Azure AD Connector if you want to play around.

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @RMDNA ,

    By design, the Office365Group connection can only get the Microsoft 365 type group.

    You can try to use AzureAD.GetMemberGroups function to get the groups you want.

    For example, set the following formula in OnStart property of App, and set OwnedGroup to Items property of a dropdown to check the result.

    ClearCollect(OwnedGroup,AzureAD.GetMemberGroups(User().Email,false).Value)

    v-albai-msft_1-1623057376994.png

    v-albai-msft_3-1623058560057.png

     

     

    Note: above will return the ID of all the groups, you can then do other actions based on the selected group ID.

    For example, use below to get the selected group name:

    AzureAD.GetGroup(Dropdown7.Selected.Value).displayName

    Or, use this to get the users who are members of the selected group:

    AzureAD.GetGroupMembers(Dropdown7.Selected.Value).value

    Best regards,

    Allen

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard