using Entra AD spoke to Count total members for a group

Brian Sorensen
Giga Guru

Looking for a way to use the item count to decide an action.

 

We have a group that has a max of 250 people allowed, if there is 250 people in that group already, we want to create a task to put user 251 on a wait list to be reviewed manually.

 

I can use the Entra ID spoke and use the Look up Group Members Stream

this will give me the count of users

BrianSorensen_0-1754519892667.png

 

In this I can see there are 207 members in the group

So what I want to do is a test using 205, if there are more that 205 log a file that says one thing, if less, log a different file

BrianSorensen_1-1754519969175.png

BrianSorensen_2-1754519983364.png

 

 

The problem is it returns the Item count as 1 and not 207


Any idea on how I can use the ENTIRE item count?

These are the only blocks I get

BrianSorensen_3-1754520030800.png

 

1 ACCEPTED SOLUTION

@Brian Sorensen  copy the oob action and modify the input parameters. Also replace the url in the REST step with the one which I previously shared.

View solution in original post

5 REPLIES 5

J Siva
Tera Sage

Hi @Brian Sorensen 
Create one custom action spoke to get the group members count.
API: 

GET https://graph.microsoft.com/v1.0/groups/<GROUP ID>/members/$count
ConsistencyLevel: eventual

The above will give you the total count.

For more info refer the official Microsoft doc:

https://learn.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http

Regards,
Siva



Appreciate the response and it makes sense, but I am not overly familiar with making Actions or how I would inject this as an option

@Brian Sorensen  copy the oob action and modify the input parameters. Also replace the url in the REST step with the one which I previously shared.

@Brian Sorensen Try the below custom action
Copy the "Look up group" action and make the changes.

JSiva_0-1754623097184.png

JSiva_1-1754623116764.png

JSiva_2-1754623133072.png

JSiva_3-1754623148769.png