Three weeks ago I blogged about a powershell script that can assign roles to users. This is very handy when doing scripted installs cause it seemed that it was impossible to add a role to a user from the Service Console. Today we had a discussion via email and my colleague from South Africa, Hugo, actually found out how to add a role to a certain user from the Service Console:
vmware-vim-cmd vimsvc/auth/entity_permission_add vim.Folder:ha-folder-root 'newuser' false ReadOnly true
The command used is “vmware-vim-cmd” aka “vimsh”. “vim.Folder:ha-folder-root” is on cluster level, ‘newuser’ is the username of the user you want to add the role to and the role is “ReadOnly”. False and true are values for “isgroup” and “propagate”.
Great job Hugo, and thanks for letting me know about this solution.
pornstar says
sweet.. by the way do you know of a good way to join a virtual center server from the ESX host without using midwife?
Tori Black says
Howdy, excelent, this is super stuff, keep up the good work.Greetings
Jo says
Thanks ! Work great !