NoAccess
Anonymous
View
ReadOnly
Admin
VirtualMachinePowerUser
VirtualMachineUser
ResourcePoolAdministrator
VMwareConsolidatedBackupUser
DatastoreConsumer
NetworkConsumer
[vi-admin@scofield ~]$ ./setUserDatastorePermission.pl --server reflex.primp-industries.com --username primp --datastore himalaya-iSCSI-starwind.esx-devCluster --user williamlam --rolename DatastoreConsumer
Searching for rolename: DatastoreConsumer...
Applying role: "DatastoreConsumer" to user: "williamlam" on datastore: "himalaya-iSCSI-starwind.esx-devCluster"
Comments |
|
Nov 19, 2009 9:42 AM
lamw says:
in response to: Doug Clark
Thanks for the info, I'll update the doc to reflect this. ========================================================================= William Lam VMware vExpert 2009 VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/ Twitter: @lamw vGhetto Script Repository Getting Started with the vMA (tips/tricks) Getting Started with the vSphere SDK for Perl VMware Code Central - Scripts/Sample code for Developers and Administrators VMware Developer Comuunity If you find this information useful, please award points for "correct" or "helpful". |
Note that this script won't work on vCenter 2.5 because that version did not support assigning permissions on Datastore objects.