Powershell command Add-RDMRoleToUser not working correctly

Powershell command Add-RDMRoleToUser not working correctly

avatar

Hello,

we updated to the new module version of powershell and now I have to following issue.

When we add a user to role via the powershell command Add-RDMRoletoUser the user is added to the specified role but all other role assignments are deleted.

How do I add just a additional role a user within RDM via Powershell?


Best Regards,
Stephan Rauscher

All Comments (6)

avatar

Hello,

What RDM version are you using?

What data source type are you connected to? If it's Devolutions Server, what version are you using?

Are the roles are Custom roles?

I will test this with a SQL data source with Custom roles and I will get back to you with my findings.

Best regards,

Érica Poirier

avatar

We are using

RDM Version: 2022.2.20.0 64-bit
Powershell Version: 2022.2.3.0
Devolutionsserver Version: 2022.2.9.0

The roles are custom roles.


Best Regards,
Stephan Rauscher

avatar

Hello,

Thank you for your feedback.

I can reproduce the error on the latest DVLS 2022.2.10. A ticket as been submitted to our engineering team. Once a fix will be available, I will post it here.

Thank you for your patience.

Best regards,

Érica Poirier

avatar

Hi,

A version (2022.3) with a fix for this issue is scheduled to release today.

Regards

Jonathan Lafontaine

avatar

Hi,

I finally had time to test it and it is working with the new release.

Thank you very much.

BR, Stephan Rauscher

avatar

Hello Stephen,

Thank you for your feedback and glad that it's working properly.

Best regards,

Érica Poirier