VMware Cloud Community
FSvcoe
Enthusiast
Enthusiast

export virtual center privileges?

Hello all,

I'm sure there's an easy way to do this, but I haven't been able to find it-need to export a list of all VC privileges, not just the ones currently assigned-Thanks.

Reply
0 Kudos
5 Replies
satya1
Hot Shot
Hot Shot

FSvcoe wrote:

Hello all,

I'm sure there's an easy way to do this, but I haven't been able to find it-need to export a list of all VC privileges, not just the ones currently assigned-Thanks.

Get-Permissions is a filter I wrote, see the script in  Identifying Role Usage.
I didn't repeat it in this thread.
The sample line I gave was only a new version of the last line of the script in  Identifying Role Usage to show how to export the result to a CSV file.

By default the separator is a comma, but in our regional settings it is defined as semi-column.
Without the -Useculture parameter the Export-Csv cmdlet always uses a  comma, with that parameter it takes the separator defined in the  regional settings.

command is-

Get-Inventory -Location (Get-Datacenter <datacenter-name>) | Get-Permissions | Export-Csv -Path "C:\permissions.csv" -NoTypeInformation

if need more assistant please follow this -http://communities.vmware.com/message/1105904#1105904

Yours,

Satya

Reply
0 Kudos
FSvcoe
Enthusiast
Enthusiast

Thank you, but that's exporting assigned permissions-I really was looking for a blanket list of ALL available permissions, so we could develop a matrix and assign these to custom roles.

Reply
0 Kudos
Rob_Bohmann1
Expert
Expert

I am not able to find a way to export the list from vCenter.

http://pubs.vmware.com/vsphere-50/topic/com.vmware.vsphere.privileges.doc_50/GUID-ED56F3C4-77D0-49E3...

That link documents all of the privileges and how and where they apply.

I printed this section to a pdf and attached it to this message.

Reply
0 Kudos
FSvcoe
Enthusiast
Enthusiast

Thanks Rob. I'll keep poking around with Powershell.

Reply
0 Kudos
gbrown2
Contributor
Contributor

FSvcoe,

were you able to get this export or develop the matrix?  I'm looking to do the exact same thing (create a matrix).

Thanks.

Glenn

Reply
0 Kudos