List Collector and Look Up User in Entra ID

Luiz Lucena
Mega Sage

Hi everyone, 

I'm trying to get a user list in a List Collector and pass to Look up User in Entra ID, to get the ObjectID of each user in the list to pass to the Add Users to Group in Entra ID.
However, I'm hitting a roadblock. 
I'm successfully getting the user list and passing to a For Each step, but the Look Up User in Entra ID is looking up only the first one on the list and I don't know why neither know how to solve. Also, how to pass to the Add Users to Group will be another challenge.

Screenshot 2025-09-05 at 14.45.40.png

 

EDIT: Correcting, I'm successfully getting each user Object ID from Entra ID, but not sure how to pass those users as a single batch to Entra ID to add them in the group.

5 REPLIES 5

kaushal_snow
Mega Sage

Hi @Luiz Lucena ,

 

 

Use a Lookup Records action to fetch all sys_user records matching your List Collector values.... Then feed that lookup into a For Each loop, which ensures each user is processed in turn....Inside that loop, use the Look Up User in Entra ID action for each user one by one and save each result....

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/