<?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 Re: ISE - Create user admin using API [Error 405] in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/3885923#M471686</link>
    <description>&lt;P&gt;This is not currently supported. For ISE admin users, ERS API is supporting READ operations (i.e. Get-All and Get-By-Id) only.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2019 00:03:54 GMT</pubDate>
    <dc:creator>hslai</dc:creator>
    <dc:date>2019-07-08T00:03:54Z</dc:date>
    <item>
      <title>ISE - Create user admin using API [Error 405]</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/3885859#M471685</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create admin user from an xml file. The load worked fine, but POST returns error 405 "Method Exception Not Supported". I could not find an alternative to work around this problem. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/40315iF979515D2D1F3FCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the python scripts for user creation and the framework used for the xml file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import http.client
import base64
import ssl
import sys

host = "X.X.X.X"
user = "ers-admin"
password = "password"

r = http.client.HTTPSConnection("{}:9060".format(host), context=ssl.SSLContext(ssl.PROTOCOL_TLSv1_2))

credentials = str.encode(':'.join((user, password)))
encodedAuth = bytes.decode(base64.b64encode(credentials))

headers = {
    'accept': "application/xml",
    'authorization': " ".join(("Basic",encodedAuth)),
    'content-type': "application/xml; charset=utf-8",
    'cache-control': "no-cache"
    }
print(open('admin.xml').read())
r.request("POST", "/ers/config/adminuser/", open('admin.xml').read(), headers=headers)

res = r.getresponse()
data = res.read()

print("Status: {}".format(res.status))
print("Header:\n{}".format(res.headers))
print("Body:\n{}".format(data.decode("utf-8")))&lt;/PRE&gt;&lt;P&gt;XML:&lt;/P&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;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&amp;gt;
&amp;lt;ns4:adminuser description="test" name="superAdmin" xmlns:ers="ers.ise.cisco.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns4="identity.ers.ise.cisco.com"&amp;gt;
    &amp;lt;adminGroups&amp;gt;Super Admin&amp;lt;/adminGroups&amp;gt;
    &amp;lt;changePassword&amp;gt;false&amp;lt;/changePassword&amp;gt;
    &amp;lt;customAttributes&amp;gt;
        &amp;lt;entry&amp;gt;
            &amp;lt;key&amp;gt;Email&amp;lt;/key&amp;gt;
            &amp;lt;value&amp;gt;test@migration.com&amp;lt;/value&amp;gt;
        &amp;lt;/entry&amp;gt;
        &amp;lt;entry&amp;gt;
            &amp;lt;key&amp;gt;Empresa&amp;lt;/key&amp;gt;
            &amp;lt;value&amp;gt;xxxxx&amp;lt;/value&amp;gt;
        &amp;lt;/entry&amp;gt;
        &amp;lt;entry&amp;gt;
            &amp;lt;key&amp;gt;Nome&amp;lt;/key&amp;gt;
            &amp;lt;value&amp;gt;superAdmin&amp;lt;/value&amp;gt;
        &amp;lt;/entry&amp;gt;
        &amp;lt;entry&amp;gt;
            &amp;lt;key&amp;gt;CR&amp;lt;/key&amp;gt;
            &amp;lt;value&amp;gt;xxxxxx&amp;lt;/value&amp;gt;
        &amp;lt;/entry&amp;gt;
        &amp;lt;entry&amp;gt;
            &amp;lt;key&amp;gt;Matr_cula&amp;lt;/key&amp;gt;
            &amp;lt;value&amp;gt;9999999&amp;lt;/value&amp;gt;
        &amp;lt;/entry&amp;gt;
    &amp;lt;/customAttributes&amp;gt;
    &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
    &amp;lt;externalUser&amp;gt;false&amp;lt;/externalUser&amp;gt;
    &amp;lt;inactiveAccountNeverDisabled&amp;gt;false&amp;lt;/inactiveAccountNeverDisabled&amp;gt;
    &amp;lt;includeSystemAlarmsInEmail&amp;gt;false&amp;lt;/includeSystemAlarmsInEmail&amp;gt;
    &amp;lt;password&amp;gt;test@123&amp;lt;/password&amp;gt;
&amp;lt;/ns4:adminuser&amp;gt;&lt;/PRE&gt;&lt;P&gt;Any help at all would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 17:52:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/3885859#M471685</guid>
      <dc:creator>gabriele.fidelis</dc:creator>
      <dc:date>2019-07-07T17:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: ISE - Create user admin using API [Error 405]</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/3885923#M471686</link>
      <description>&lt;P&gt;This is not currently supported. For ISE admin users, ERS API is supporting READ operations (i.e. Get-All and Get-By-Id) only.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 00:03:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/3885923#M471686</guid>
      <dc:creator>hslai</dc:creator>
      <dc:date>2019-07-08T00:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: ISE - Create user admin using API [Error 405]</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/3885925#M471687</link>
      <description>&lt;P&gt;hslai,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, Is there another way to import a list of administrators into ISE? Instead of creating one by one in the GUI.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 00:14:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/3885925#M471687</guid>
      <dc:creator>gabriele.fidelis</dc:creator>
      <dc:date>2019-07-08T00:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: ISE - Create user admin using API [Error 405]</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/3887908#M471688</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;But, Is there another way to import a list of administrators into ISE? Instead of creating one by one in the GUI.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your best bet would be to use an external ID source (AD or LDAP or ODBC) as the primary ID source for admin authentication instead of using the internal admin users. If we import internal users (network access users) via CSV, we would still need to add them individually as admin users and assign them with admin groups.&lt;/P&gt;
&lt;P&gt;Here are the basic steps to use Active Directory as the admin auth ID source:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Verify ISE Joined to the Active Directory.
&lt;OL&gt;
&lt;LI&gt;Access ISE Active Directory configuration page by navigating to &lt;STRONG&gt;Administration &amp;gt; Identity Management &amp;gt; External Identity Sources &lt;/STRONG&gt;and select &lt;STRONG&gt;Active Directory &lt;/STRONG&gt;from the left-hand pane.&lt;/LI&gt;
&lt;LI&gt;Click the hyperlink under the Joint Point Name column.&lt;/LI&gt;
&lt;LI&gt;In the connection page, skip to the next section of the exercise if the ISE node status is &lt;STRONG&gt;Operational&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;If ISE node not joined to AD, tick þthe checkbox next to ISE node and then click &lt;STRONG&gt;Join&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;In &lt;STRONG&gt;Join Domain&amp;nbsp;&lt;/STRONG&gt;pop-up window, fill in AD user credentials&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt;to start the join operation.&lt;/LI&gt;
&lt;LI&gt;A window &lt;STRONG&gt;Join Operation Status&lt;/STRONG&gt;will pop up. Wait until the node status turns &lt;STRONG&gt;Completed&lt;/STRONG&gt;, and then click &lt;STRONG&gt;Close&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Click on the tab [ Groups ] and configure the AD groups to use for ISE admin or other ISE policies.&lt;/LI&gt;
&lt;LI&gt;Go to &lt;STRONG&gt;Administrations&lt;/STRONG&gt;&amp;gt; &lt;STRONG&gt;System&lt;/STRONG&gt;&amp;gt; &lt;STRONG&gt;Admin Access&lt;/STRONG&gt;&amp;gt; &lt;STRONG&gt;Authentication&lt;/STRONG&gt;and tab &lt;STRONG&gt;Authentication Method&amp;nbsp;&lt;/STRONG&gt;on the right-hand pane. Click on the Identity Source drop-down and select &lt;STRONG&gt;AD &lt;/STRONG&gt;object. Then, &lt;STRONG&gt;Save&lt;/STRONG&gt;.
&lt;UL&gt;
&lt;LI&gt;Go to &lt;STRONG&gt;Administrations&lt;/STRONG&gt;&amp;gt; &lt;STRONG&gt;System&lt;/STRONG&gt;&amp;gt; &lt;STRONG&gt;Admin Access&lt;/STRONG&gt;&amp;gt; &lt;STRONG&gt;Administrators&lt;/STRONG&gt;&amp;gt; &lt;STRONG&gt;Admin Groups&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Click on the&amp;nbsp;hyperlink for&amp;nbsp;an admin group (e.g.&amp;nbsp;&lt;U&gt;Read Only Admin)&lt;/U&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Select Type [V] External and select an AD group to be mapped to this admin group.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adGroup4admin.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/40512i3664825571B4BA31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adGroup4admin.png" alt="adGroup4admin.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Save&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 10 Jul 2019 17:21:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/3887908#M471688</guid>
      <dc:creator>hslai</dc:creator>
      <dc:date>2019-07-10T17:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: ISE - Create user admin using API [Error 405]</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/5319901#M597749</link>
      <description>&lt;P&gt;6 years gone and this is still not supported??&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 10:47:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-create-user-admin-using-api-error-405/m-p/5319901#M597749</guid>
      <dc:creator>dal</dc:creator>
      <dc:date>2025-08-12T10:47:56Z</dc:date>
    </item>
  </channel>
</rss>

