<?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 What ISE version are you in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909428#M36495</link>
    <description>&lt;P&gt;What ISE version are you running?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 16:40:45 GMT</pubDate>
    <dc:creator>jan.nielsen</dc:creator>
    <dc:date>2016-04-26T16:40:45Z</dc:date>
    <item>
      <title>ISE API Create Internal User 415 Error</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909427#M36494</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone had any luck using the ISE REST API to create users?&lt;/P&gt;
&lt;P&gt;I'm making the following request:&lt;/P&gt;
&lt;DIV class="status-line"&gt;POST /ers/config/internaluser HTTP/1.1&lt;/DIV&gt;
&lt;DIV class="header"&gt;&lt;SPAN class="name"&gt;Host: x&lt;/SPAN&gt;&lt;SPAN class="value"&gt;.x.x.x:9060&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="header"&gt;&lt;SPAN class="name"&gt;Authorization: &lt;/SPAN&gt;&lt;SPAN class="value"&gt;Basic xxxxxxx&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="header"&gt;&lt;SPAN class="name"&gt;Accept: &lt;/SPAN&gt;&lt;SPAN class="value"&gt;application/vnd.com.cisco.ise.identity.internaluser.1.1+xml&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="header"&gt;&lt;SPAN class="value"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="header"&gt;&lt;SPAN class="value"&gt;with this XML:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;PRE class="header prettyprint"&gt;&lt;SPAN class="value"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&amp;gt; &lt;BR /&gt;&amp;lt;ns3:inernaluser xmlns:ns2=“ers.ise.cisco.com” xmlns:ns3=“identity.ers.ise.cisco.com” name=“username”&amp;gt;&lt;BR /&gt; &amp;lt;changePassword&amp;gt;true&amp;lt;/changePassword&amp;gt;&lt;BR /&gt; &amp;lt;customAttribute/&amp;gt;&lt;BR /&gt; &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt; &lt;BR /&gt; &amp;lt;firstName&amp;gt;first&amp;lt;/firstName&amp;gt;&lt;BR /&gt; &amp;lt;lastName&amp;gt;last&amp;lt;/lastName&amp;gt; &lt;BR /&gt; &amp;lt;password&amp;gt;cisco&amp;lt;/password&amp;gt; &lt;BR /&gt;&amp;lt;/ns3:internaluser&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="header"&gt;&lt;SPAN class="value"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="header"&gt;&lt;SPAN class="value"&gt;&lt;/SPAN&gt;However I get a 415 response:&lt;/DIV&gt;
&lt;PRE class="header prettyprint"&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&amp;gt;&amp;lt;ns3:ersResponse operation="POST-create-internaluser" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns3="ers.ise.cisco.com"&amp;gt;&amp;lt;link rel="related" href="https://x.x.x.x:9060/ers/config/internaluser" type="application/xml"/&amp;gt;&amp;lt;messages&amp;gt;&amp;lt;message type="ERROR" code="Resource media type exception"&amp;gt;&amp;lt;title&amp;gt;The specified content-type is not supported. check the resource name in the request URI or the media type specified in the 'Accept' header.&amp;lt;/title&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;/messages&amp;gt;&amp;lt;/ns3:ersResponse&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Can anyone spot the issue here?&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 06:42:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909427#M36494</guid>
      <dc:creator>brianpocock2</dc:creator>
      <dc:date>2019-03-11T06:42:26Z</dc:date>
    </item>
    <item>
      <title>What ISE version are you</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909428#M36495</link>
      <description>&lt;P&gt;What ISE version are you running?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:40:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909428#M36495</guid>
      <dc:creator>jan.nielsen</dc:creator>
      <dc:date>2016-04-26T16:40:45Z</dc:date>
    </item>
    <item>
      <title>2.0.0.306

Cheers</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909429#M36496</link>
      <description>&lt;P&gt;2.0.0.306&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:56:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909429#M36496</guid>
      <dc:creator>brianpocock2</dc:creator>
      <dc:date>2016-04-26T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Don't know where you got your</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909430#M36497</link>
      <description>&lt;P&gt;Don't know where you got your example from, but there are some errors in the xml, and also in the headers you are sending.&lt;/P&gt;
&lt;P&gt;Your header : accept: xxxxx changed to&lt;/P&gt;
&lt;P&gt;Content-Type: application/vnd.com.cisco.ise.identity.internaluser.1.0+xml&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I made this xml, i marked the things i changed from the cisco api guide example in bold :&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;ns3:internaluser description="description" name="&lt;STRONG&gt;testuser&lt;/STRONG&gt;" id="id" xmlns:ns2="ers.ise.cisco.com" xmlns:ns3="identity.ers.ise.cisco.com"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;changePassword&amp;gt;true&amp;lt;/changePassword&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;lt;customAttributes&amp;gt;&amp;lt;/customAttributes&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;email&amp;gt;&lt;A class="linkificator-ext" href="mailto:email@example.com" title="Linkificator: mailto:email@example.com"&gt;email@example.com&lt;/A&gt;&amp;lt;/email&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;firstName&amp;gt;John&amp;lt;/firstName&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;identityGroups&amp;gt;&lt;STRONG&gt;10a42820-6d90-11e5-978e-005056bf2f0a&lt;/STRONG&gt;&amp;lt;/identityGroups&amp;gt;&amp;lt;lastName&amp;gt;Doe&amp;lt;/lastName&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;password&amp;gt;&lt;STRONG&gt;Gld45Fvcx&lt;/STRONG&gt;&amp;lt;/password&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/ns3:internaluser&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Remember the password has to follow the password requirements set for internal users in ise, the customattributes section is mandatory, even thought there are none set. Identity group is also mandatory, the id can be found with another api call.&lt;/P&gt;
&lt;P&gt;Everything is described here :&lt;A class="linkificator-ext" href="http://www.cisco.com/c/en/us/td/docs/security/ise/2-0/api_ref_guide/api_ref_book/ise_api_ref_ers2.html" title="Linkificator: http://www.cisco.com/c/en/us/td/docs/security/ise/2-0/api_ref_guide/api_ref_book/ise_api_ref_ers2.html"&gt;http://www.cisco.com/c/en/us/td/docs/security/ise/2-0/api_ref_guide/api_ref_book/ise_api_ref_ers2.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 17:21:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909430#M36497</guid>
      <dc:creator>jan.nielsen</dc:creator>
      <dc:date>2016-04-26T17:21:02Z</dc:date>
    </item>
    <item>
      <title>Thanks, that sorted it.  I</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909431#M36498</link>
      <description>&lt;P&gt;Thanks, that sorted it. &amp;nbsp;I was getting confused between when using accept and content type headers between gets and posts. &amp;nbsp;Also missing the identity groups attribute.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 19:38:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909431#M36498</guid>
      <dc:creator>brianpocock2</dc:creator>
      <dc:date>2016-04-26T19:38:47Z</dc:date>
    </item>
    <item>
      <title>No problem, the documentation</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909432#M36499</link>
      <description>&lt;P&gt;No problem, the documentation can be a little confusing when it comes to the request headers, also they changed from ISE 1.x to 2.0&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 20:03:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-create-internal-user-415-error/m-p/2909432#M36499</guid>
      <dc:creator>jan.nielsen</dc:creator>
      <dc:date>2016-04-26T20:03:10Z</dc:date>
    </item>
  </channel>
</rss>

