pkjaer / tridion-powershell-modules

Windows PowerShell module allowing management of SDL Tridion (Content Management System) from the command line
13 stars 14 forks source link

New-User -MakeAdministrator parameter does not work on Web 8.5 #35

Open jhorsman opened 7 years ago

jhorsman commented 7 years ago

When running a command like New-TridionUser -UserName "domain\username" -Description "Person Name" -MakeAdministrator, the Web 8.5 Core Service will throw an error.

New-TridionUser : Exception calling "Create" with "2" argument(s): "Setting of property 'Privileges' is not supported."

The error makes sense, Web 8.5 does not support privileges. Instead of setting the privileges the cmdlet should add the new user to the built in "System Administrator" group.