<?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: ERROR MESSAGE WHEN CREATING GUEST USER USING GUEST API in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/error-message-when-creating-guest-user-using-guest-api/m-p/3841675#M541611</link>
    <description>&lt;P&gt;The on-box SDK guide is our main source of documentation on ISE ERS API. Please let us know if you find an error or any suggestion for improvements.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2019 13:51:19 GMT</pubDate>
    <dc:creator>hslai</dc:creator>
    <dc:date>2019-04-19T13:51:19Z</dc:date>
    <item>
      <title>ERROR MESSAGE WHEN CREATING GUEST USER USING GUEST API</title>
      <link>https://community.cisco.com/t5/network-access-control/error-message-when-creating-guest-user-using-guest-api/m-p/3837075#M541605</link>
      <description>&lt;P&gt;I am giving a try to the instructions from the following link for the: &lt;FONT color="#339966"&gt;&lt;EM&gt;&lt;SPAN&gt;Create the Guest user using the guest API query. &lt;/SPAN&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/t5/security-documents/ise-guest-sponsor-api-tips-amp-tricks/ta-p/3636773" target="_blank" rel="noopener"&gt;https://community.cisco.com/t5/security-documents/ise-guest-sponsor-api-tips-amp-tricks/ta-p/3636773&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I got the following error. Does anyone have a suggestion?, thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ERROR API.png" style="width: 859px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/34304i0AC5274121719E8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="ERROR API.png" alt="ERROR API.png" /&gt;&lt;/span&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 18:33:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/error-message-when-creating-guest-user-using-guest-api/m-p/3837075#M541605</guid>
      <dc:creator>ajc</dc:creator>
      <dc:date>2019-04-11T18:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR MESSAGE WHEN CREATING GUEST USER USING GUEST API</title>
      <link>https://community.cisco.com/t5/network-access-control/error-message-when-creating-guest-user-using-guest-api/m-p/3838302#M541606</link>
      <description>&lt;P&gt;Please check and ensure that the user invoking the ISE Guest ERS API is a valid sponsor user and that the sponsor user is a member of an ISE Sponsor User group entitled to use the ISE Guest ERS API.&lt;/P&gt;
&lt;H1&gt;Requisites to Create an ISE Guest User via ISE ERS API&lt;/H1&gt;
&lt;P&gt;To create a guest user via the ISE Guest ERS API, we need:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A valid ISE Sponsor Portal ID&lt;/LI&gt;
&lt;LI&gt;A valid ISE Sponsor user
&lt;UL&gt;
&lt;LI&gt;an active ISE internal or external user with valid username and password&lt;/LI&gt;
&lt;LI&gt;belonging to an ISE Sponsor group that can access ISE Guest ERS API&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;A valid ISE Guest Type name&lt;/LI&gt;
&lt;LI&gt;(Optional) A valid location name -- created under ISE Admin web UI &amp;gt; Work Centers &amp;gt; Guest Access &amp;gt; Settings &amp;gt;&lt;SPAN&gt;Guest Locations and SSIDs&lt;/SPAN&gt; &amp;gt; Guest Locations&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Details with Examples&lt;/H1&gt;
&lt;H2&gt;GET Sponsor Portal ID (via ERS)&lt;/H2&gt;
&lt;P&gt;## Auth: ERS-Admin User credentials&lt;BR /&gt;## The value of the ID attribute is used as that for &lt;FONT face="comic sans ms,sans-serif"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;portalId&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt; to create an ISE guest user.&lt;/P&gt;
&lt;PRE&gt;curl -X GET -k -H 'Content-Type: application/json' -H 'Accept: application/json' -i \
'https://myErsAdmin:myErsAdminPass@myISE24FCS:9060/ers/config/sponsorportal'
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Permit Sponsor Group Access to ERS API&lt;/H2&gt;
&lt;P&gt;### [ The option at ISE Admin Web UI ]&lt;BR /&gt;[ ] Access Cisco ISE guest accounts using the programmatic interface (Guest REST API)&lt;BR /&gt;### To enable it via ERS, first we get the ISE Sponsor Group ID&lt;BR /&gt;## Auth: ERS-Admin User credentials&lt;/P&gt;
&lt;PRE&gt;curl -X GET -k -H 'Content-Type: application/json' -H 'Accept: application/json' -i \
'https://myErsAdmin:myErsAdminPass@myISE24FCS:9060/ers/config/sponsorgroup'
&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;### Once we have ISE Sponsor Group ID and if this sponsor group has no API access yet, we may enable it via ISE ERS API&lt;BR /&gt;## Auth: ERS-Admin User credentials&lt;BR /&gt;## id for SponsorGroup obtained from the output of the previous request.&lt;/P&gt;
&lt;PRE&gt;curl -X PUT -k -H 'Content-Type: application/json' -H 'Accept: application/json' -i \
'https://myErsAdmin:myErsAdminPass@myISE24FCS:9060/ers/config/sponsorgroup/9f1eca71-8c01-11e6-996c-525400b48521' \
--data '{
  "SponsorGroup" : {
    "id" : "9f1eca71-8c01-11e6-996c-525400b48521",
    "otherPermissions" : {
      "canAccessViaRest" : true
    }
  }
}'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Get Internal User Group ALL_ACCOUNTS ID&lt;/H2&gt;
&lt;P&gt;In case we need to create an ISE internal user to act as the sponsor user with access to ISE Guest ERS API&lt;BR /&gt;## Auth: ERS-Admin User credentials&lt;BR /&gt;## &lt;FONT color="#FF0000"&gt;NB:&lt;/FONT&gt; &lt;EM&gt;This ISE internal user group ID differs from that of the sponsor group ID&lt;/EM&gt;&lt;BR /&gt;## Below shows to get the info on ISE internal group with a name starts with ALL_ACCOUNTS&lt;/P&gt;
&lt;PRE&gt;curl -X GET -k -H 'Content-Type: application/json' -H 'Accept: application/json' -i \
'https://myErsAdmin:myErsAdminPass@myISE24FCS:9060/ers/config/identitygroup?filter=name.STARTSW.ALL_ACCOUNTS'
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN style="color: inherit; font-family: inherit;"&gt;Create an Internal User with a group membership of ‘ALL_ACCOUNTS (default)’&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;## a176c430-8c01-11e6-996c-525400b48521 below obtained from the output of the previous request&lt;/P&gt;
&lt;PRE&gt;curl -X POST -k -H 'Content-Type: application/json' -H 'Accept: application/json' -i \&lt;BR /&gt;'https://myErsAdmin:myErsAdminPass@myISE24FCS:9060/ers/config/internaluser' \&lt;BR /&gt;--data '{
  "InternalUser" : {
    "name" : "mySponsor",
    "enabled" : true,
    "password" : "mySponsorPass",
    "changePassword" : false,
    "identityGroups" : "a176c430-8c01-11e6-996c-525400b48521",
    "expiryDateEnabled" : false,
    "customAttributes" : {
    },
    "passwordIDStore" : "Internal Users"
  }
}'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN style="font-family: inherit;"&gt;Create a Guest User&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;## &lt;FONT color="#FF0000"&gt;NB:&lt;/FONT&gt; &lt;EM&gt;CSCvi42404 validDays does not match span of fromDate to toDate for ERS created guests&lt;/EM&gt;&lt;BR /&gt;## Auth: ISE Sponsor User credentials with a sponsor group membership that allows to use REST (aka ERS) API&lt;/P&gt;
&lt;PRE&gt;curl -X POST -k -H 'Content-Type: application/json' -H 'Accept: application/json' -i \&lt;BR /&gt;'https://mySponsor:mySponsorPass@myISE24FCS:9060/ers/config/guestuser' \&lt;BR /&gt;--data '{
  "GuestUser" : {
    "guestType" : "Weekly (default)",
    "guestInfo" : {
      "userName" : "testGST01",
      "firstName" : "John",
      "lastName" : "Smith",
      "password" : "9048"
    },
    "guestAccessInfo" : {
      "validDays" : 6,
      "fromDate" : "04/14/2019 16:49",
      "toDate" : "04/19/2019 23:59",
      "location" : "UTC"
    },
    "portalId" : "40963c00-2e02-11e8-ba71-005056872c7f"
  }
}'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 17:47:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/error-message-when-creating-guest-user-using-guest-api/m-p/3838302#M541606</guid>
      <dc:creator>hslai</dc:creator>
      <dc:date>2019-04-14T17:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR MESSAGE WHEN CREATING GUEST USER USING GUEST API</title>
      <link>https://community.cisco.com/t5/network-access-control/error-message-when-creating-guest-user-using-guest-api/m-p/3841302#M541609</link>
      <description>&lt;P&gt;Hi Hslai,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Postman and just copying the curl commands and data into the body worked. However, I still have one question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the data/guides/instructions of MY&amp;nbsp;&lt;A href="https://PRIMARY_PAN_ISE.DOMAIN:9060/ers/sdk#" target="_blank"&gt;https://PRIMARY_PAN_ISE.DOMAIN:9060/ers/sdk#&lt;/A&gt; , running ISE 2.4 patch 5 still valid/updated? I will give a try and post a comment before closing as "ANSWERED" this post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&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;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Thu, 18 Apr 2019 18:51:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/error-message-when-creating-guest-user-using-guest-api/m-p/3841302#M541609</guid>
      <dc:creator>ajc</dc:creator>
      <dc:date>2019-04-18T18:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR MESSAGE WHEN CREATING GUEST USER USING GUEST API</title>
      <link>https://community.cisco.com/t5/network-access-control/error-message-when-creating-guest-user-using-guest-api/m-p/3841675#M541611</link>
      <description>&lt;P&gt;The on-box SDK guide is our main source of documentation on ISE ERS API. Please let us know if you find an error or any suggestion for improvements.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 13:51:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/error-message-when-creating-guest-user-using-guest-api/m-p/3841675#M541611</guid>
      <dc:creator>hslai</dc:creator>
      <dc:date>2019-04-19T13:51:19Z</dc:date>
    </item>
  </channel>
</rss>

