Add a User to Multiple AD Groups via ihub/flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2022 01:31 AM
I need to create a flow utilizing our ihub integration to AD to allow a user to be added to multiple AD groups that are selected on a catalog item (list Collector) form.
Has anyone achieved this? Have you had to create a sting from array to allow this to happen? or any other ways?
- Labels:
-
flow designer
-
IntegrationHub

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2022 02:01 AM
Hi,
This sounds like it shouldn't be a issue.
Do a look up records on the list collector, then perform a for each record found, add user to group from the AD spoke.
This is assuming you have something in the list collector records that identifies which AD group is targeted.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2022 11:43 AM
Alex,
This is pretty straightforward, list collectors create a comma separated string, you can simply use javascript String split() method passing "," as the separator parameter to turn the string into an array.
From there you can use a for each in the flow to call the 'Add User To Group' action as many times as you need to to add the user to all the required groups.
Hope this is of some help,
Richard