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 2,029 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
    2,338 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
    2,029 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard