I have 100 domain users who wants to access their respective folders in the vCenter server. but want to restrict them seeing other folders.
In the attachment you can see that I have added one domain user to his VM folder with "Virtual Machine console user" role and he can see only his respective VM folder listed. In a similar way Please assist me with powercli script in which all the domain users can be added to their respective VM folders with any given role.
Your attached screenshot doesn't show anything I'm afraid.
How do you provide these users?
In a file? Which layout?
And how are these folders named?
Same name as the account?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
How do you provide these users? In a file? Which layout?
-Updated the user and folder details in a csv file
And how are these folders named? Same name as the account?
-Folder names are already created a per the user name.
In the current scenerio, I have created "UserandVMFolder.csv" (attached) which has 2 details "VMfolder" and "Userneedaccess". in this you can find the list of VM folder like "testA" which need to be access by user "userAname@domain.com". similarly "testB/C/D" etc.. folders need to be accessed/viewed by respective users.
Attached the screen shot from the vCenter view as well.. hope this clarifies.