i like to change the Userproperty from User to Admin.
$user = Get-RDMUser -Name "XYZ@example.com"
$user | Set-RDMUserProperty -Property "Usertype" -value "Admin"
But this doesn´t work.
How do i set the usertype property?
As the UserType property will only accept the values of the enum type, here are the numeric values you should use instead of a word.
Admin = 0
User = 1
Read Only = 2
So, your code should look like this :
$user | Set-RDMUserProperty -Property "Usertype" -value 0
thank for your reply. We tried but get an error (please see attachment).
This means: Warning: This property can´t be changed.
Which RDM version are you using?
With RDM 2019.1.41, please use this method instead.
$user.UserType = 0