<?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 How to fetch info about users via the ERS API in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/how-to-fetch-info-about-users-via-the-ers-api/m-p/3949837#M456128</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to fetch the user's data for given endpoints via the ERS API by the device's MAC address.&lt;/P&gt;&lt;P&gt;As the first step I'm querying for the endpoint:&lt;/P&gt;&lt;PRE&gt;c GET https://&amp;lt;my-domain&amp;gt;:9060/ers/config/endpoint/&amp;lt;endpoint-id&amp;gt; Content-Type:"application/json" Accept:"application/json" --user "&amp;lt;user&amp;gt;:&amp;lt;password&amp;gt;" | bat -l json

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONIDSSO=&amp;lt;...&amp;gt;; Path=/; Secure; HttpOnly
Set-Cookie: APPSESSIONID=&amp;lt;...&amp;gt;; Path=/ers; Secure; HttpOnly
Pragma: no-cache
ETag: "&amp;lt;...&amp;gt;"
Date: Tue, 29 Oct 2019 13:21:40 GMT
Content-Type: application/json;charset=utf-8
Content-Length: 697
Server:

   1   │ {
   2   │   "ERSEndPoint" : {
   3   │     "id" : "&amp;lt;id&amp;gt;",
   4   │     "name" : "&amp;lt;mac&amp;gt;",
   5   │     "description" : "TEST -work laptop",
   6   │     "mac" : "&amp;lt;mac&amp;gt;",
   7   │     "profileId" : "&amp;lt;profile-id&amp;gt;",
   8   │     "staticProfileAssignment" : false,
   9   │     "groupId" : "&amp;lt;group-id&amp;gt;",
  10   │     "staticGroupAssignment" : true,
  11   │     "portalUser" : "&amp;lt;user-name&amp;gt;",
  12   │     "identityStore" : "",
  13   │     "identityStoreId" : "&amp;lt;identity-store-id&amp;gt;"
  19   │   }
  20   │ }&lt;/PRE&gt;&lt;P&gt;This gives me the "portalUser" and "profileId" but there doesn't seem to be any way to get the data I can see about this user when I log into the Cisco ISE admin in the browser. I can e. g. see the first and last names of the user in there but not in the API. I've tried different ERS API routes - internalusers, guestusers etc but the user was simply not there.&lt;/P&gt;&lt;P&gt;Could anyone please shed some light on what can be done with the "profileId" and where can I potentially look for the info about users?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 13:32:54 GMT</pubDate>
    <dc:creator>Kamil Ciemniewski</dc:creator>
    <dc:date>2019-10-29T13:32:54Z</dc:date>
    <item>
      <title>How to fetch info about users via the ERS API</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-fetch-info-about-users-via-the-ers-api/m-p/3949837#M456128</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to fetch the user's data for given endpoints via the ERS API by the device's MAC address.&lt;/P&gt;&lt;P&gt;As the first step I'm querying for the endpoint:&lt;/P&gt;&lt;PRE&gt;c GET https://&amp;lt;my-domain&amp;gt;:9060/ers/config/endpoint/&amp;lt;endpoint-id&amp;gt; Content-Type:"application/json" Accept:"application/json" --user "&amp;lt;user&amp;gt;:&amp;lt;password&amp;gt;" | bat -l json

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONIDSSO=&amp;lt;...&amp;gt;; Path=/; Secure; HttpOnly
Set-Cookie: APPSESSIONID=&amp;lt;...&amp;gt;; Path=/ers; Secure; HttpOnly
Pragma: no-cache
ETag: "&amp;lt;...&amp;gt;"
Date: Tue, 29 Oct 2019 13:21:40 GMT
Content-Type: application/json;charset=utf-8
Content-Length: 697
Server:

   1   │ {
   2   │   "ERSEndPoint" : {
   3   │     "id" : "&amp;lt;id&amp;gt;",
   4   │     "name" : "&amp;lt;mac&amp;gt;",
   5   │     "description" : "TEST -work laptop",
   6   │     "mac" : "&amp;lt;mac&amp;gt;",
   7   │     "profileId" : "&amp;lt;profile-id&amp;gt;",
   8   │     "staticProfileAssignment" : false,
   9   │     "groupId" : "&amp;lt;group-id&amp;gt;",
  10   │     "staticGroupAssignment" : true,
  11   │     "portalUser" : "&amp;lt;user-name&amp;gt;",
  12   │     "identityStore" : "",
  13   │     "identityStoreId" : "&amp;lt;identity-store-id&amp;gt;"
  19   │   }
  20   │ }&lt;/PRE&gt;&lt;P&gt;This gives me the "portalUser" and "profileId" but there doesn't seem to be any way to get the data I can see about this user when I log into the Cisco ISE admin in the browser. I can e. g. see the first and last names of the user in there but not in the API. I've tried different ERS API routes - internalusers, guestusers etc but the user was simply not there.&lt;/P&gt;&lt;P&gt;Could anyone please shed some light on what can be done with the "profileId" and where can I potentially look for the info about users?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:32:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-fetch-info-about-users-via-the-ers-api/m-p/3949837#M456128</guid>
      <dc:creator>Kamil Ciemniewski</dc:creator>
      <dc:date>2019-10-29T13:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch info about users via the ERS API</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-fetch-info-about-users-via-the-ers-api/m-p/3950600#M456131</link>
      <description>&lt;P&gt;profileId: It would be ID of profiling policy applied to the endpoint. You will need to use another API call to find out the readable profiling policy name that matches the profileId&lt;/P&gt;
&lt;P&gt;portalUser: If the user was authenticated via external means such as AD, LDAP, SAML, etc then you would need to look up the external identity store for the user name mapped to MAC address&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 16:46:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-fetch-info-about-users-via-the-ers-api/m-p/3950600#M456131</guid>
      <dc:creator>howon</dc:creator>
      <dc:date>2019-10-30T16:46:12Z</dc:date>
    </item>
  </channel>
</rss>

