<?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 AddAuthorizationRole in VMware {code} Members</title>
    <link>https://communities.vmware.com/t5/VMware-code-Members/AddAuthorizationRole/m-p/2938843#M76</link>
    <description>&lt;P&gt;I am working on a project for VM 7.0.3 and I am new to both VMWare and Python. What I have&amp;nbsp; is a csv file with all of the roles and privs that go with a server.&amp;nbsp; I am going to use this file to select a role out of and I want to apply it to a new server. I have searched all over for some code that could help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I cannot figure out is the way to push it to the target server. Name+Privs should be all that is needed for this. Is the formatting of the strings specific? If I have multiple privileges to copy, are there quotes or just commas in the list?&lt;/P&gt;&lt;P&gt;Target_vcenter.authorizationManager.updateAuthorizationRole(Role.name , Role.privilege)&lt;/P&gt;&lt;P&gt;The MOB worked for me but I cannot figure out how to do this after making the connection in Python. It does not seem to like my inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 15:14:34 GMT</pubDate>
    <dc:creator>Walkndude</dc:creator>
    <dc:date>2022-11-17T15:14:34Z</dc:date>
    <item>
      <title>AddAuthorizationRole</title>
      <link>https://communities.vmware.com/t5/VMware-code-Members/AddAuthorizationRole/m-p/2938843#M76</link>
      <description>&lt;P&gt;I am working on a project for VM 7.0.3 and I am new to both VMWare and Python. What I have&amp;nbsp; is a csv file with all of the roles and privs that go with a server.&amp;nbsp; I am going to use this file to select a role out of and I want to apply it to a new server. I have searched all over for some code that could help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I cannot figure out is the way to push it to the target server. Name+Privs should be all that is needed for this. Is the formatting of the strings specific? If I have multiple privileges to copy, are there quotes or just commas in the list?&lt;/P&gt;&lt;P&gt;Target_vcenter.authorizationManager.updateAuthorizationRole(Role.name , Role.privilege)&lt;/P&gt;&lt;P&gt;The MOB worked for me but I cannot figure out how to do this after making the connection in Python. It does not seem to like my inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 15:14:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Members/AddAuthorizationRole/m-p/2938843#M76</guid>
      <dc:creator>Walkndude</dc:creator>
      <dc:date>2022-11-17T15:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: AddAuthorizationRole</title>
      <link>https://communities.vmware.com/t5/VMware-code-Members/AddAuthorizationRole/m-p/2940106#M77</link>
      <description>&lt;P&gt;Do the privileges need to be in a certain format, or does a string work? Can I just push them as a string variable?&lt;/P&gt;&lt;P&gt;privs = "Operations Global.CancelTask InventoryService.Tagging.ObjectAttachable ScheduledTask.Create ScheduledTask.Delete ScheduledTask.Edit ScheduledTask.Run System.Anonymous System.Read System.View "&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 19:53:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Members/AddAuthorizationRole/m-p/2940106#M77</guid>
      <dc:creator>Walkndude</dc:creator>
      <dc:date>2022-11-22T19:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: AddAuthorizationRole</title>
      <link>https://communities.vmware.com/t5/VMware-code-Members/AddAuthorizationRole/m-p/2941744#M78</link>
      <description>&lt;P&gt;I figured it out myself.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 14:49:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Members/AddAuthorizationRole/m-p/2941744#M78</guid>
      <dc:creator>Walkndude</dc:creator>
      <dc:date>2022-12-01T14:49:40Z</dc:date>
    </item>
  </channel>
</rss>

