The CreatorCon Call for Content is officially open! Get started here.

How to add multiple users to Azure AD Groups?

User460980
Kilo Contributor

Hi,

I am new to integration, want to add multiple users to Azure AD group through service catalog and I am using flow designer for connections. So please give some suggestions. Thanks in advance.

1 ACCEPTED SOLUTION

If you want to add multiple users to the group, build the input with a flow variable before adding it to the "Add multiple users to group" action.

Step 0, create a flow variable that will contain users data

Step 1, get catalog variables (list collector values)

Step 2, do a look up of user records, where sysID is one of Step 1

Step 3, for every record found in step 2, add the appropriate data (not sysID) to the flow variable

Step 4, use the data in the flow variable as input to the "Add multiple users to group" action

View solution in original post

12 REPLIES 12

Hi,

As you can see in the attached picture in my first reply, there is an option to add multiple users to a group.

Aman Kumar S
Kilo Patron

What you can do is, to get the list of users in list collector whom you want to add in AD group, and use "Foreach" in flow designer and iterate through records to pass the parameters in Add User to group action

 

Here's one ref article:

https://docs.servicenow.com/bundle/paris-servicenow-platform/page/administer/flow-designer/concept/flow-logic-for-each.html

Best Regards
Aman Kumar

Sravani36
Tera Expert

Hi is this Automation works adding multiple users to Azure ad from ServiceNow instead of single user.