<?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 ACS REST API - Create/Update User with Attributes in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/acs-rest-api-create-update-user-with-attributes/m-p/2874229#M39574</link>
    <description>&lt;DIV class="blog-content"&gt;
&lt;DIV class="node-body blog-body" itemprop="text"&gt;
&lt;DIV class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;
&lt;DIV class="field-items"&gt;
&lt;DIV class="field-item even" property="content:encoded"&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm currently attempting to create users into our Cisco ACS V5.6.0.22.4, using the REST API services. I can create/update delete a user entry fine, but I seem to be totally failing at setting attribute values that already pre-defined within the ACS.&lt;/P&gt;
&lt;P&gt;The service calls come back with an OK status 204 but the attribute is still blank when the user is viewed in the management site. Is it possible to set these attributes during the create transaction?&lt;/P&gt;
&lt;P&gt;I have tried to update the user once create, and again this does not work either.&lt;/P&gt;
&lt;P&gt;What am I missing here?&lt;/P&gt;
&lt;P&gt;Here is the XML payload I an sending on create:&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;BR /&gt;&amp;lt;ns2:user xmlns:ns1="common.rest.mgmt.acs.nm.cisco.com" xmlns:ns2="identity.rest.mgmt.acs.nm.cisco.com"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;description&amp;gt;Test SSO User&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;identityGroupName&amp;gt;All Groups:SSO:Test&amp;lt;/identityGroupName&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;name&amp;gt;AndyCTest13&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;ns1:attributeInfo&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns1:AttributeInfo&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns1:attributeName&amp;gt;Framed-IP-Address&amp;lt;/ns1:attributeName&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns1:attributeValue&amp;gt;172.172.123.123&amp;lt;/ns1:attributeValue&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ns1:AttributeInfo&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/ns1:attributeInfo&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;changePassword&amp;gt;false&amp;lt;/changePassword&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;dateExceedsEnabled&amp;gt;false&amp;lt;/dateExceedsEnabled&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;password&amp;gt;************&amp;lt;/password&amp;gt;&lt;BR /&gt;&amp;lt;/ns2:user&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;FOOTER class="blog-footer node-footer"&gt;
&lt;DIV class="row-fluid"&gt;
&lt;DIV class="node-rate pull-left"&gt;
&lt;DIV class="control-group form-type-item form-item"&gt;
&lt;DIV class="controls"&gt;
&lt;DIV class="rate-widget-2 rate-widget clear-block rate-average rate-widget-fivestar rate-IKfpuZJab3ujyLPySwbi_6LE9HH0vsAC_adrdoi2zzg rate-node-13014526-2-1 rate-processed" id="rate-node-13014526-2-1"&gt;
&lt;UL class="rate-fivestar-processed"&gt;
&lt;LI class="first"&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/FOOTER&gt;</description>
    <pubDate>Mon, 11 Mar 2019 06:50:23 GMT</pubDate>
    <dc:creator>andy.curtis1</dc:creator>
    <dc:date>2019-03-11T06:50:23Z</dc:date>
    <item>
      <title>ACS REST API - Create/Update User with Attributes</title>
      <link>https://community.cisco.com/t5/network-access-control/acs-rest-api-create-update-user-with-attributes/m-p/2874229#M39574</link>
      <description>&lt;DIV class="blog-content"&gt;
&lt;DIV class="node-body blog-body" itemprop="text"&gt;
&lt;DIV class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;
&lt;DIV class="field-items"&gt;
&lt;DIV class="field-item even" property="content:encoded"&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm currently attempting to create users into our Cisco ACS V5.6.0.22.4, using the REST API services. I can create/update delete a user entry fine, but I seem to be totally failing at setting attribute values that already pre-defined within the ACS.&lt;/P&gt;
&lt;P&gt;The service calls come back with an OK status 204 but the attribute is still blank when the user is viewed in the management site. Is it possible to set these attributes during the create transaction?&lt;/P&gt;
&lt;P&gt;I have tried to update the user once create, and again this does not work either.&lt;/P&gt;
&lt;P&gt;What am I missing here?&lt;/P&gt;
&lt;P&gt;Here is the XML payload I an sending on create:&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;BR /&gt;&amp;lt;ns2:user xmlns:ns1="common.rest.mgmt.acs.nm.cisco.com" xmlns:ns2="identity.rest.mgmt.acs.nm.cisco.com"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;description&amp;gt;Test SSO User&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;identityGroupName&amp;gt;All Groups:SSO:Test&amp;lt;/identityGroupName&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;name&amp;gt;AndyCTest13&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;ns1:attributeInfo&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns1:AttributeInfo&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns1:attributeName&amp;gt;Framed-IP-Address&amp;lt;/ns1:attributeName&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns1:attributeValue&amp;gt;172.172.123.123&amp;lt;/ns1:attributeValue&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ns1:AttributeInfo&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/ns1:attributeInfo&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;changePassword&amp;gt;false&amp;lt;/changePassword&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;dateExceedsEnabled&amp;gt;false&amp;lt;/dateExceedsEnabled&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;password&amp;gt;************&amp;lt;/password&amp;gt;&lt;BR /&gt;&amp;lt;/ns2:user&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;FOOTER class="blog-footer node-footer"&gt;
&lt;DIV class="row-fluid"&gt;
&lt;DIV class="node-rate pull-left"&gt;
&lt;DIV class="control-group form-type-item form-item"&gt;
&lt;DIV class="controls"&gt;
&lt;DIV class="rate-widget-2 rate-widget clear-block rate-average rate-widget-fivestar rate-IKfpuZJab3ujyLPySwbi_6LE9HH0vsAC_adrdoi2zzg rate-node-13014526-2-1 rate-processed" id="rate-node-13014526-2-1"&gt;
&lt;UL class="rate-fivestar-processed"&gt;
&lt;LI class="first"&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/FOOTER&gt;</description>
      <pubDate>Mon, 11 Mar 2019 06:50:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/acs-rest-api-create-update-user-with-attributes/m-p/2874229#M39574</guid>
      <dc:creator>andy.curtis1</dc:creator>
      <dc:date>2019-03-11T06:50:23Z</dc:date>
    </item>
    <item>
      <title>Hi Andy,</title>
      <link>https://community.cisco.com/t5/network-access-control/acs-rest-api-create-update-user-with-attributes/m-p/2874230#M39575</link>
      <description>&lt;P&gt;Hi Andy,&lt;/P&gt;
&lt;P&gt;We &lt;SPAN style="color: #525252; font-family: arial, helvetica, 'Helvetica Neue', HelveticaNeue, 'Lucida Grande', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;must enable the web interface on ACS before you can use the REST web service. Can you please check on CLI "&lt;B class="cBold" style="margin: 12px 0px; padding: 0px; border: 0px; font-style: normal; font-variant: normal; font-weight: bold; font-stretch: inherit; font-size: 12.6px; line-height: 15.75px; font-family: monospace; vertical-align: baseline; color: #525252; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;show acs-config-web-interface&lt;/B&gt;"&amp;nbsp; and it is not enabled ,then please enable "&lt;B class="cBold" style="margin: 12px 0px; padding: 0px; border: 0px; font-style: normal; font-variant: normal; font-weight: bold; font-stretch: inherit; font-size: 12.6px; line-height: 15.75px; font-family: monospace; vertical-align: baseline; color: #525252; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;acs config-web-interface rest enable&lt;/B&gt;"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #525252; font-family: arial, helvetica, 'Helvetica Neue', HelveticaNeue, 'Lucida Grande', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;..&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #525252; font-family: arial, helvetica, 'Helvetica Neue', HelveticaNeue, 'Lucida Grande', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;Do you have chance to create the Framed-IP-Address in the System Administration &amp;gt;Configuration &amp;gt;Dictionaries &amp;gt; Identity &amp;gt; Internal Users .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #525252; font-family: arial, helvetica, 'Helvetica Neue', HelveticaNeue, 'Lucida Grande', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;We need to create those attributes ,then we can update with REST API.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #525252; font-family: arial, helvetica, 'Helvetica Neue', HelveticaNeue, 'Lucida Grande', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #525252; font-family: arial, helvetica, 'Helvetica Neue', HelveticaNeue, 'Lucida Grande', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #525252; font-family: arial, helvetica, 'Helvetica Neue', HelveticaNeue, 'Lucida Grande', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;VenkataKrishna&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #525252; font-family: arial, helvetica, 'Helvetica Neue', HelveticaNeue, 'Lucida Grande', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;Please rate helpful posts and mark correct answers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #525252; font-family: arial, helvetica, 'Helvetica Neue', HelveticaNeue, 'Lucida Grande', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 08:05:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/acs-rest-api-create-update-user-with-attributes/m-p/2874230#M39575</guid>
      <dc:creator>vthaluru</dc:creator>
      <dc:date>2016-07-06T08:05:57Z</dc:date>
    </item>
  </channel>
</rss>

