cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JeffWhite
Advocate I
Advocate I

AzureAD Getting Security Groups Exceeds Rate Limit

I'm attempting to load a Gallery with a filtered list of the names of security groups a user belongs to. I am getting the Rate Limit Exceeded message with my attempt. I can't think of an approach that uses fewer calls.

 

  1. I collect the GUIDs to a Collection, "AllGroups" AzureAD.GetMemberGroups for the targeted employee.  
  2. ForAll(AllGroups,Collect(GroupInfo,{Name:AzureAD.GetGroup(Value))
  3. Put SubsetGroups into a Gallery, showing "Name"

 

Is there something more efficient? If I push the "AllGroups" collection to the Gallery, I can set the label value to AzureAD.GetGroup(ThisItem.Value)--but I can't filter at that point b/c I don't yet have the Group Name. So it's the same number of calls to the AzureAD connection. 

 

All I can think is that the ForAll processes faster than laying out the Gallery does...so I don't exceed the rate. Does anyone know if that's what's going on? Here's the actual commands on the Button: 

 

Clear(GroupInfo);
ClearCollect(
AllGroups,
AzureAD.GetMemberGroups(
ModelEmail,
true
)
);
ForAll(
AllGroups,
Collect(
GroupInfo,
If(StartsWith(AzureAD.GetGroup(Value).displayName,"CP.")=true,{Name:AzureAD.GetGroup(Value).displayName})
)
)

 

 

This post seems close, but I couldn't get it to work for what I needed: https://powerusers.microsoft.com/t5/Creating-Apps/Getting-a-List-of-Display-Names-of-User-s-Security...

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,359)