Forum Discussion

johnjohn-Peter's avatar
johnjohn-Peter
Iron Contributor
Dec 10, 2023

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

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:-

 

 

 

 

 

 
 

 

 

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

 

Thanks

1 Reply

Resources