<?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 Create Internal user with curl and json with windows command line in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/create-internal-user-with-curl-and-json-with-windows-command/m-p/4404009#M567332</link>
    <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I am trying to&amp;nbsp;Create an Internal User with cURL and JSON on window command prompt&amp;nbsp; for cisco ISE. prompt&amp;nbsp; but I am&amp;nbsp; getting&amp;nbsp; these errors over again . can anyone help me out&lt;/P&gt;&lt;P&gt;this is curl command&lt;BR /&gt;curl --insecure --include --user ers-admin:Admin22@# --header "Content-Type:application/json" --header "Accept: application/json" &lt;A href="https://192.168.31.16:9060/ers/config/internaluser" target="_blank" rel="noopener"&gt;https://192.168.31.16:9060/ers/config/internaluser&lt;/A&gt; --data @internaluser.json}'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my error&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400&lt;BR /&gt;Set-Cookie: JSESSIONIDSSO=21F0E7399C2908B8E3D6F47578D0E82E; Path=/; Secure; HttpOnly&lt;BR /&gt;Set-Cookie: APPSESSIONID=1E9ED3FFD9C8A99774BE5DCF72638F2E; Path=/ers; Secure; HttpOnly&lt;BR /&gt;Cache-Control: no-cache, no-store, must-revalidate&lt;BR /&gt;Pragma: no-cache&lt;BR /&gt;Expires: Thu, 01 Jan 1970 00:00:00 GMT&lt;BR /&gt;X-Frame-Options: SAMEORIGIN&lt;BR /&gt;Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;X-Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;&lt;BR /&gt;X-WebKit-CSP: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;&lt;BR /&gt;Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;&lt;BR /&gt;X-XSS-Protection: 1; mode=block&lt;BR /&gt;Date: Mon, 17 May 2021 12:06:44 GMT&lt;BR /&gt;Content-Type: application/json;charset=utf-8&lt;BR /&gt;Transfer-Encoding: chunked&lt;BR /&gt;Connection: close&lt;BR /&gt;Server:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"ERSResponse" : {&lt;BR /&gt;"operation" : "POST-create-internaluser",&lt;BR /&gt;"messages" : [ {&lt;BR /&gt;"title" : "Invalid JSON Input: Unexpected end-of-input: expected close marker for OBJECT (from [Source: java.io.StringReader@15fa68a; line: 1, column: 0])\n at [Source: java.io.StringReader@15fa68a; line: 1, column: 237]",&lt;BR /&gt;"type" : "ERROR",&lt;BR /&gt;"code" : "Application resource validation exception"&lt;BR /&gt;} ],&lt;BR /&gt;"link" : {&lt;BR /&gt;"rel" : "related",&lt;BR /&gt;"href" : "&lt;A href="https://192.168.30.13:9060/ers/config/internaluser" target="_blank" rel="noopener"&gt;https://192.168.30.13:9060/ers/config/internaluser&lt;/A&gt;",&lt;BR /&gt;"type" : "application/xml"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this the content of json test file&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"InternalUser" : {&lt;BR /&gt;"name" : "Kwame",&lt;BR /&gt;"password" : "C1sco1234",&lt;BR /&gt;"changePassword" : false&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 12:28:17 GMT</pubDate>
    <dc:creator>Richie20</dc:creator>
    <dc:date>2021-05-17T12:28:17Z</dc:date>
    <item>
      <title>Create Internal user with curl and json with windows command line</title>
      <link>https://community.cisco.com/t5/network-access-control/create-internal-user-with-curl-and-json-with-windows-command/m-p/4404009#M567332</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I am trying to&amp;nbsp;Create an Internal User with cURL and JSON on window command prompt&amp;nbsp; for cisco ISE. prompt&amp;nbsp; but I am&amp;nbsp; getting&amp;nbsp; these errors over again . can anyone help me out&lt;/P&gt;&lt;P&gt;this is curl command&lt;BR /&gt;curl --insecure --include --user ers-admin:Admin22@# --header "Content-Type:application/json" --header "Accept: application/json" &lt;A href="https://192.168.31.16:9060/ers/config/internaluser" target="_blank" rel="noopener"&gt;https://192.168.31.16:9060/ers/config/internaluser&lt;/A&gt; --data @internaluser.json}'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my error&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400&lt;BR /&gt;Set-Cookie: JSESSIONIDSSO=21F0E7399C2908B8E3D6F47578D0E82E; Path=/; Secure; HttpOnly&lt;BR /&gt;Set-Cookie: APPSESSIONID=1E9ED3FFD9C8A99774BE5DCF72638F2E; Path=/ers; Secure; HttpOnly&lt;BR /&gt;Cache-Control: no-cache, no-store, must-revalidate&lt;BR /&gt;Pragma: no-cache&lt;BR /&gt;Expires: Thu, 01 Jan 1970 00:00:00 GMT&lt;BR /&gt;X-Frame-Options: SAMEORIGIN&lt;BR /&gt;Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;X-Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;&lt;BR /&gt;X-WebKit-CSP: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;&lt;BR /&gt;Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;&lt;BR /&gt;X-XSS-Protection: 1; mode=block&lt;BR /&gt;Date: Mon, 17 May 2021 12:06:44 GMT&lt;BR /&gt;Content-Type: application/json;charset=utf-8&lt;BR /&gt;Transfer-Encoding: chunked&lt;BR /&gt;Connection: close&lt;BR /&gt;Server:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"ERSResponse" : {&lt;BR /&gt;"operation" : "POST-create-internaluser",&lt;BR /&gt;"messages" : [ {&lt;BR /&gt;"title" : "Invalid JSON Input: Unexpected end-of-input: expected close marker for OBJECT (from [Source: java.io.StringReader@15fa68a; line: 1, column: 0])\n at [Source: java.io.StringReader@15fa68a; line: 1, column: 237]",&lt;BR /&gt;"type" : "ERROR",&lt;BR /&gt;"code" : "Application resource validation exception"&lt;BR /&gt;} ],&lt;BR /&gt;"link" : {&lt;BR /&gt;"rel" : "related",&lt;BR /&gt;"href" : "&lt;A href="https://192.168.30.13:9060/ers/config/internaluser" target="_blank" rel="noopener"&gt;https://192.168.30.13:9060/ers/config/internaluser&lt;/A&gt;",&lt;BR /&gt;"type" : "application/xml"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this the content of json test file&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"InternalUser" : {&lt;BR /&gt;"name" : "Kwame",&lt;BR /&gt;"password" : "C1sco1234",&lt;BR /&gt;"changePassword" : false&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 12:28:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/create-internal-user-with-curl-and-json-with-windows-command/m-p/4404009#M567332</guid>
      <dc:creator>Richie20</dc:creator>
      <dc:date>2021-05-17T12:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create Internal user with curl and json with windows command line</title>
      <link>https://community.cisco.com/t5/network-access-control/create-internal-user-with-curl-and-json-with-windows-command/m-p/4404443#M567342</link>
      <description>&lt;P&gt;Your JSON is missing a closing brace. Try using this content:&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;"InternalUser": {&lt;BR /&gt;"name": "Kwame",&lt;BR /&gt;"password": "C1sco1234}",&lt;BR /&gt;"changePassword": false&lt;BR /&gt; }&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 May 2021 05:19:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/create-internal-user-with-curl-and-json-with-windows-command/m-p/4404443#M567342</guid>
      <dc:creator>Greg Gibbs</dc:creator>
      <dc:date>2021-05-18T05:19:13Z</dc:date>
    </item>
  </channel>
</rss>

