How to add multiple users from a List collector to AD group using IntegrationHub Microsoft AD spoke action(Add user to group)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2021 01:35 PM
Hi,
I'm working on a Catalog Item to automate adding users to AD group.
I have created a list collector in the Catalog Item to select multiple users to be added to the group. I'm looking for a help on how to add this list of users to AD group using IntegrationHub AD Spoke action "Add user to group".
I could see that "Add user to group" action accepts/allows only one user at a time.
Any inputs/pointers around this would be helpful.
~Jit
- Labels:
-
flow designer
-
IntegrationHub

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2021 03:52 PM
It depends on how efficient you want to be with your IH transactions. You could create a custom flow action "Add User(s) to group" and a custom powershell script to accept a string of users. Alternatively you can do a loop in your flow to iterate over each user in the list collector and call the OOB 'Add user to group' function 1 by 1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2021 11:50 AM
Thanks for your response!
Since the catalog variable used to collect users to be added to group is of type LIST, not able to use "For Each Item in" flow logic as i'm unable to get the individual user value to drill down to the columns in the user table.
Not sure if i'm missing something here.
Please help!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2021 01:13 PM
Hi,
You can create an action step to itterate over a list collector.
Using list collector in Flow Designer 'For Each loop' by converting string into array of string