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.
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...
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
186 | |
45 | |
45 | |
36 | |
35 |
User | Count |
---|---|
262 | |
83 | |
78 | |
69 | |
67 |