How to assign a user to role

How to assign a user to role

avatar

I have a role to which I need to assign a user. How is this done over powershell?

I tried the following, but not working:

Add-RDMRoleToUser -RoleName 'Remote Desktop Manager' -UserName $name

All Comments (2)

avatar

Hello,

Could you please try to run the Update-RDMUI cmdlet right after the Add-RDMRoleToUser cmdlet? This should help to refresh your RDM local cache and you should see the role assigned to the user account.

Best regards,

Érica Poirier

avatar

I can confirm it works as required. Thank you!