<?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 How to assign existing role to existing enduser in Management</title>
    <link>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4054255#M3352</link>
    <description>&lt;P&gt;Through the AXL Java API, does anyone know how to assign existing users to an existing role?&lt;/P&gt;</description>
    <pubDate>Sat, 28 Mar 2020 18:17:07 GMT</pubDate>
    <dc:creator>Roberts32364</dc:creator>
    <dc:date>2020-03-28T18:17:07Z</dc:date>
    <item>
      <title>How to assign existing role to existing enduser</title>
      <link>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4054255#M3352</link>
      <description>&lt;P&gt;Through the AXL Java API, does anyone know how to assign existing users to an existing role?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 18:17:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4054255#M3352</guid>
      <dc:creator>Roberts32364</dc:creator>
      <dc:date>2020-03-28T18:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign existing role to existing enduser</title>
      <link>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4054419#M3353</link>
      <description>&lt;P&gt;Dont know .. have you check the docs?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/docs/axl/#!axl-developer-guide/new-and-changed-information-for-unified-cm-release-12-5-1" target="_blank"&gt;https://developer.cisco.com/docs/axl/#!axl-developer-guide/new-and-changed-information-for-unified-cm-release-12-5-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pubhub.devnetcloud.com/media/axl/docs/managing-user-roles/Configuring%20Roles%20Using%20AXL.pdf" target="_blank"&gt;https://pubhub.devnetcloud.com/media/axl/docs/managing-user-roles/Configuring%20Roles%20Using%20AXL.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 08:20:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4054419#M3353</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-03-29T08:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign existing role to existing enduser</title>
      <link>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4055360#M3356</link>
      <description>&lt;P&gt;Thanks, I had looked at those.&amp;nbsp; I just ended up doing a SQL update.&amp;nbsp; The code is below in case it helps anyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ExecuteSQLUpdateReq sqlUpdateReq = new ExecuteSQLUpdateReq();
ExecuteSQLUpdateRes SQLUpdate;
String update = "insert into enduserdirgroupmap(pkid, fkenduser, fkdirgroup) values(newId(), '%s', '%s')";

/**
 *  fkenduser = pkid of user
 *  fkdirgroup = pkid of group
/**
sqlUpdateReq.setSql(String.format(update, fkenduser, fkdirgroup));

try {
     SQLUpdate = axlPort.executeSQLUpdate(sqlUpdateReq);
} catch (Exception e) {
     e.printStackTrace();
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 17:41:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4055360#M3356</guid>
      <dc:creator>Roberts32364</dc:creator>
      <dc:date>2020-03-30T17:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign existing role to existing enduser</title>
      <link>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4061759#M3372</link>
      <description>&lt;P&gt;Roles are held in User Access Control Groups.&amp;nbsp; You can manage the membership of these Access Control Groups with AXL via &amp;lt;updateUserGroup&amp;gt;, for example to add user 'dstaudt' to the 'Standard CCM Read Only' Access Control Group (which has 3 roles):&lt;/P&gt;
&lt;PRE&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:updateUserGroup sequence="1"&amp;gt;
         &amp;lt;name&amp;gt;Standard CCM Read Only&amp;lt;/name&amp;gt;
         &amp;lt;addMembers&amp;gt;
            &amp;lt;member&amp;gt;
               &amp;lt;userId&amp;gt;dstaudt&amp;lt;/userId&amp;gt;
            &amp;lt;/member&amp;gt;
         &amp;lt;/addMembers&amp;gt;
      &amp;lt;/ns:updateUserGroup&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/PRE&gt;
&lt;P&gt;I don't have a Java sample of that particular operation, however this repo has a few that hopefully can get you started in the right direction: &lt;A href="https://github.com/CiscoDevNet/axl-java-samples" target="_blank"&gt;https://github.com/CiscoDevNet/axl-java-samples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 13:35:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4061759#M3372</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2020-04-08T13:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign existing role to existing enduser</title>
      <link>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4081046#M3391</link>
      <description>&lt;P&gt;I am no fan of doing this by SQL Updates because there you can have pretty strange behavior.&lt;/P&gt;&lt;P&gt;If you use AXL the Interface checks it everything is ok before processing your request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always recommend to read the AXL documentation and maybe use a get response to see the XML Layout which is working&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 07:41:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/how-to-assign-existing-role-to-existing-enduser/m-p/4081046#M3391</guid>
      <dc:creator>thedd</dc:creator>
      <dc:date>2020-05-07T07:41:32Z</dc:date>
    </item>
  </channel>
</rss>

