Hi Everyone,
I created a desktop flow that will add and remove users from AD Groups given to it by variables from a cloud flow, it works flawless when the user has to be removed from one group and added to another, but when the user needs to be added to 2 groups he won't be added to the 2nd group and only to the first.
The variable that is being made in the cloud flow is an array of course, but how can I make sure that the user will be added to both groups in the desktop flow?
The powershell command looks just like this:
Remove-ADGroupMember -Identity '%varCollMatchingADGroups%' -Members '%Gebruikersnaam%' -Confirm:$false
Add-ADGroupMember -Identity '%varCollADGroupsNewFunctionDesc%' -Members '%Gebruikersnaam%'

Report
All responses (
Answers (