flow designer -active directory spoke v2- add user to groups

LakshminnSn
Tera Expert

HI all

I am trying to use the Microsoft Active directory v2 spoke - Action  Add User to Groups

Our catalog form currently allows user to be added to single group only and has a variable called Groupname (allows only one group selection)

 

In the flow designer Add User to Groups there is a mandatory input Group Names  array.string type

 

Will i be able to just pass my string value from catalog form to the Group name 1  i.e the first array element and leave the Group Names array blank and get the user added to Active directory - will this work

 

LakshminnSn_1-1708936612377.png

 

 

1 ACCEPTED SOLUTION

Finally i was able to test this in my Dev environment but i used the Add Users to Group , It works with a single user as well ,  the workflow just passed a  single user as a string and not an array but still the action completed successfully .Using that string input  the action Add Users to Group action formats an array of string  and uses it

View solution in original post

9 REPLIES 9

Hi @LakshminnSn 

Will you be able to share details with screenshot as to how you did it. 

 

Hi Hanwar

 

I have set mandatory string inputs for group name and user name

 

Lann_0-1748269876495.png

Using out of box activities to make sure both the Group lookup and User lookup is success and then only proceed for further actions (i use subflow for lookup as we have groups both in Onpremise AD and Azure AD)

Lann_2-1748270153875.png

 

 

Lann_3-1748270281000.png

 

Using out of box action to make sure User is not in group already and then finally call the Add users to group activity - Hope this helps.

 

Lann_1-1748270054979.png

 

 

Hi @Lann 

Can you share more screenshots showing the entire configuration of flow, so that I can understand and try

westonr
Tera Contributor

I'm facing the same issue with converting some of our old flows to use AD Spoke V2. Were you able to find a solution beyond waiting to convert?

Ct111
Tera Sage

Hello LakshminnSn,

 

What you are trying  will do give same thing  ,

by this i mean if you use Add Users to group  then also you would have to provide multiple usernames 

and incase of Add User to groups in this also you would have to provide multiple groupnames.

 

So, if you say in your solution like this "Add USers to group" works then "Add User to groups" case should also work.

 

Please confirm once . Thanks