{"id":6205,"date":"2018-02-27T06:00:32","date_gmt":"2018-02-26T20:00:32","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=6205"},"modified":"2018-02-26T16:08:12","modified_gmt":"2018-02-26T06:08:12","slug":"vmware-vsphere-basics-create-a-custom-role","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/vmware-vsphere-basics-create-a-custom-role\/","title":{"rendered":"VMware &#8211; vSphere Basics &#8211; Create a Custom Role"},"content":{"rendered":"<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2016\/10\/VMware_logo_gry_RGB_300dpi-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4450 size-medium\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2016\/10\/VMware_logo_gry_RGB_300dpi-1-300x105.jpg\" alt=\"\" width=\"300\" height=\"105\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2016\/10\/VMware_logo_gry_RGB_300dpi-1-300x105.jpg 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2016\/10\/VMware_logo_gry_RGB_300dpi-1-768x269.jpg 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2016\/10\/VMware_logo_gry_RGB_300dpi-1-1024x359.jpg 1024w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2016\/10\/VMware_logo_gry_RGB_300dpi-1.jpg 1216w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I&#8217;ve been evaluating a data protection solution in the lab recently and wanted to create a custom role in vCenter for the solution to use. It&#8217;s a basic thing, but if you don&#8217;t do it often it might not be that obvious where to click. The VMware documentation site has <a href=\"https:\/\/docs.vmware.com\/en\/VMware-vSphere\/6.5\/com.vmware.vsphere.security.doc\/GUID-41E5E52E-A95B-4E81-9724-6AD6800BEF78.html?src=vmw_so_vex_dfrit_205\">more information<\/a>\u00a0on creating a custom role as well. Why would you do this? In the same way it&#8217;s a bad idea to give every service Domain Administrator privileges, it&#8217;s also a bad idea to give your data protection solutions elevated privileges in your environment. If you&#8217;re into that kind of thing, read <a href=\"https:\/\/docs.vmware.com\/en\/VMware-vSphere\/6.5\/com.vmware.vsphere.security.doc\/GUID-FAA074CC-E8C9-4F13-ABCF-6CF7F15F04EE.html?src=vmw_so_vex_dfrit_205\">this guidance on roles and permissions<\/a> too. In this example, I created a &#8220;CohesityTest&#8221; user as a domain user in Active Directory. I then wanted to assign that user to a custom role in vCenter and assign it certain privileges. In this example I&#8217;m using vCenter 6.5 with the Web Client. The process is as follows.<\/p>\n<p>Go to the Home screen in vCenter and click on &#8220;Administration&#8221;.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_001.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6206\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_001.png\" alt=\"\" width=\"800\" height=\"458\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_001.png 1137w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_001-300x172.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_001-768x440.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_001-1024x586.png 1024w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>In this example, I&#8217;ve already created a Role called Cohesity (following the instructions above) and assigned privileges to that Role.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_002.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6207\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_002.png\" alt=\"\" width=\"800\" height=\"375\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_002.png 1387w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_002-300x141.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_002-768x360.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_002-1024x480.png 1024w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>Click on &#8220;Global Permissions&#8221; and the click on the green plus sign.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_003.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6208\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_003.png\" alt=\"\" width=\"800\" height=\"170\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_003.png 1349w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_003-300x64.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_003-768x163.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_003-1024x217.png 1024w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>I want to add a user to a role. Click on &#8220;Add&#8221;.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_004.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6209\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_004.png\" alt=\"\" width=\"633\" height=\"701\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_004.png 633w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_004-271x300.png 271w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/a><\/p>\n<p>The user I want to add is a domain user, so I use the drop down box to select the domain the user resides in.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_005.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6210\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_005.png\" alt=\"\" width=\"632\" height=\"700\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_005.png 632w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_005-271x300.png 271w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/a><\/p>\n<p>Typing &#8220;coh&#8221; into the search field yields the only user with those letters in their name.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_006.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6211\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_006.png\" alt=\"\" width=\"630\" height=\"701\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_006.png 630w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_006-270x300.png 270w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a><\/p>\n<p>Once the user is selected, you can click on &#8220;Add&#8221; and then &#8220;OK&#8221;.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_007.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6212\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_007.png\" alt=\"\" width=\"637\" height=\"699\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_007.png 637w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_007-273x300.png 273w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<p>Make sure the user has the appropriate Role assigned. In this example, I&#8217;m assigning the CohesityTest user to the Cohesity Role and propagating these changes to child objects. Click &#8220;OK&#8221;. And then you&#8217;re done.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_008.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6213\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_008.png\" alt=\"\" width=\"637\" height=\"698\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_008.png 637w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_008-274x300.png 274w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<p>To check your role has the correct privileges, click on &#8220;Roles&#8221;, &#8220;Role Name&#8221;, and then &#8220;Privileges&#8221; and you can expand the items to check the correct privileges are assigned.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_009.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6214\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_009.png\" alt=\"\" width=\"800\" height=\"528\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_009.png 1028w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_009-300x198.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_009-768x507.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/02\/Cohesity_Role_009-1024x676.png 1024w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>Once I&#8217;d done this I went back and re-added the vCenter to the Cohesity environment using the CohesityTest user and I was good to go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been evaluating a data protection solution in the lab recently and wanted to create a custom role in vCenter for the solution to use. It&#8217;s a basic thing, but if you don&#8217;t do it often it might not be that obvious where to click. The VMware documentation site has more information\u00a0on creating a custom [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127,4],"tags":[297,110,444,1076,798,786],"class_list":["post-6205","post","type-post","status-publish","format-standard","hentry","category-vcenter","category-vmware","tag-basics","tag-howto","tag-privileges","tag-role","tag-vcenter","tag-vmware"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/6205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/comments?post=6205"}],"version-history":[{"count":2,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/6205\/revisions"}],"predecessor-version":[{"id":6216,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/6205\/revisions\/6216"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=6205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=6205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=6205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}