<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Verify User's Role/Privileges after cloning the session in vSphere Client SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Verify-User-s-Role-Privileges-after-cloning-the-session/m-p/2908456#M6049</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I could successfully clone the &lt;EM&gt;UserSession&lt;/EM&gt; from VC plugin UI to VC plugin server. [Using this:&amp;nbsp;&lt;A href="https://developer.vmware.com/docs/14560/developing-remote-plug-ins-with-the-vsphere-client-sdk--7-0-update-3-/GUID-ED253BD0-E9B1-4588-958D-577A667F5AD9.html" target="_self"&gt;Ref&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;Now, I want to check if the logged in user has certain permissions. I have to do certain action if the user has the below privileges :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#999999"&gt;&lt;SPAN&gt;// vLCM Privileges&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Configure.Configure Service&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;VMware vSphere Lifecycle Manager.Lifecycle Manager: Settings Privileges.Read&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this using the cloned UserSession? Any pointers on this will be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 12:22:47 GMT</pubDate>
    <dc:creator>vedaniks</dc:creator>
    <dc:date>2022-05-11T12:22:47Z</dc:date>
    <item>
      <title>Verify User's Role/Privileges after cloning the session</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Verify-User-s-Role-Privileges-after-cloning-the-session/m-p/2908456#M6049</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I could successfully clone the &lt;EM&gt;UserSession&lt;/EM&gt; from VC plugin UI to VC plugin server. [Using this:&amp;nbsp;&lt;A href="https://developer.vmware.com/docs/14560/developing-remote-plug-ins-with-the-vsphere-client-sdk--7-0-update-3-/GUID-ED253BD0-E9B1-4588-958D-577A667F5AD9.html" target="_self"&gt;Ref&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;Now, I want to check if the logged in user has certain permissions. I have to do certain action if the user has the below privileges :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#999999"&gt;&lt;SPAN&gt;// vLCM Privileges&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Configure.Configure Service&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;VMware vSphere Lifecycle Manager.Lifecycle Manager: Settings Privileges.Read&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this using the cloned UserSession? Any pointers on this will be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 12:22:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Verify-User-s-Role-Privileges-after-cloning-the-session/m-p/2908456#M6049</guid>
      <dc:creator>vedaniks</dc:creator>
      <dc:date>2022-05-11T12:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Verify User's Role/Privileges after cloning the session</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Verify-User-s-Role-Privileges-after-cloning-the-session/m-p/2908690#M6050</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, once you have acquired the cloned user session, you can use the vimPort to call different vCenter Server APIs.&lt;/P&gt;&lt;P&gt;We have an example of how to check for certain user privileges in our remote plugin sample present in the vSphere Client SDK deliverable. The code that shows this is in:&lt;/P&gt;&lt;P&gt;&amp;lt;sdk-folder&amp;gt;/samples/remote-plugin-sample/src/main/java/com/vmware/sample/remote/vim25/services/AuthorizationService.java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Denis&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 12:53:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Verify-User-s-Role-Privileges-after-cloning-the-session/m-p/2908690#M6050</guid>
      <dc:creator>Denis_Chorbadzh</dc:creator>
      <dc:date>2022-05-12T12:53:26Z</dc:date>
    </item>
  </channel>
</rss>

