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 / why "Office365Groups.L...
Power Apps
Answered

why "Office365Groups.ListGroups().value" does not return all the related office 365 security groups

(0) ShareShare
ReportReport
Posted on by 1,837 Season of Giving Solutions 2025

I have this code inside my onvisible property of a screen:-

 

Set(varGroupName,If(IsProd.Run().isprod,"PPM-Maintenance Managers","PPM-Maintenance Managers-Test"));
Set(testList,Office365Groups.ListGroups().value);
With(
{
wAdminID: LookUp(
Office365Groups.ListGroups().value,
displayName = varGroupName
).id
},
Set(
varIsMainenanceManager,
Lower(User().FullName) in Lower(Office365Groups.ListGroupMembers(wAdminID).value.displayName)
)
);

 

now this Office365Groups.ListGroups().value does not return all the security groups.. for example i have those 2 identical security groups:-

 

johnjohnPter_0-1702229369683.png

 

 

johnjohnPter_1-1702229385862.png

 

the first group will not get returned while the second one will get returned , although both of them are security groups without emails and i am login using office 365 admin user.. any advice?

 

Thanks

 

Categories:
I have the same question (0)
  • Verified answer
    Sunil Kumar Pashikanti Profile Picture
    1,077 Moderator on at

    Hi @johnjohnPter,

     

    The Office365Groups.ListGroups() function may not return all the security groups in your tenant, especially if you have more than 100 groups. This is because the function has a limit of 100 records and does not support pagination or filtering.

     

    Some possible workarounds are:

     

    Best Regards,

    @SunilPashikanti 

  • johnjohnPter Profile Picture
    1,837 Season of Giving Solutions 2025 on at

    @SunilPashikanti thanks for the reply, i did a Search and abel to get all the related groups,,thanks

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 538 Most Valuable Professional

#2
11manish Profile Picture

11manish 307

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard