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,002 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,097 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,002 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 Launch!

Jump in, show your community spirit, and win prizes!

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 432

#2
Valantis Profile Picture

Valantis 362

#3
timl Profile Picture

timl 337 Super User 2026 Season 1

Last 30 days Overall leaderboard