<?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 ISE Sponsored Guest Accounts List via a report in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3917322#M457365</link>
    <description>&lt;P&gt;Is it not possible to get a list/report of all sponsor created guest accounts from ISE?&lt;/P&gt;&lt;P&gt;I don't want passwords just a list that includes usefull info like account expiration date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't imagine that this is not useful for companies auditing purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I note there are some ideas around enabling a REST API etc. but this requires programming knowledge etc. and also ensuring that certain port numbers are accessible on the ISE Admin IP Address and is certainly not for the faint hearted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Surely not beyound the capabilities of the ISE team to provide such a simple report.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Sep 2019 12:48:05 GMT</pubDate>
    <dc:creator>Scott Gillies</dc:creator>
    <dc:date>2019-09-01T12:48:05Z</dc:date>
    <item>
      <title>ISE Sponsored Guest Accounts List via a report</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3917322#M457365</link>
      <description>&lt;P&gt;Is it not possible to get a list/report of all sponsor created guest accounts from ISE?&lt;/P&gt;&lt;P&gt;I don't want passwords just a list that includes usefull info like account expiration date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't imagine that this is not useful for companies auditing purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I note there are some ideas around enabling a REST API etc. but this requires programming knowledge etc. and also ensuring that certain port numbers are accessible on the ISE Admin IP Address and is certainly not for the faint hearted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Surely not beyound the capabilities of the ISE team to provide such a simple report.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2019 12:48:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3917322#M457365</guid>
      <dc:creator>Scott Gillies</dc:creator>
      <dc:date>2019-09-01T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: ISE Sponsored Guest Accounts List via a report</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3917362#M457367</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have an enhancement filed for this request:&lt;BR /&gt;&lt;STRONG&gt;ENH: Export Guest Accounts Configured in ISE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CSCty82007&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://bst.cloudapps.cisco.com/bugsearch/bug/CSCty82007/?reffering_site=dumpcr" target="_self"&gt;https://bst.cloudapps.cisco.com/bugsearch/bug/CSCty82007/?reffering_site=dumpcr&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;REST API is a request and response method that doesn't necessarily require advanced programming skills.&lt;/P&gt;
&lt;P&gt;Here is a post that might be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cisco.com/t5/policy-and-access/cisco-ise-2-3-export-guest-account/td-p/3363740" target="_self"&gt;https://community.cisco.com/t5/policy-and-access/cisco-ise-2-3-export-guest-account/td-p/3363740&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh Moudgil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. Please rate helpful posts.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2019 16:07:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3917362#M457367</guid>
      <dc:creator>Dinesh Moudgil</dc:creator>
      <dc:date>2019-09-01T16:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: ISE Sponsored Guest Accounts List via a report</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3918428#M457369</link>
      <description>Right and I have asked for the ISE Export guest list functionality. Please reach out to &lt;A href="http://cs.co/ise-feedback" target="_blank"&gt;http://cs.co/ise-feedback&lt;/A&gt; and provide the request</description>
      <pubDate>Tue, 03 Sep 2019 19:34:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3918428#M457369</guid>
      <dc:creator>Jason Kunst</dc:creator>
      <dc:date>2019-09-03T19:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: ISE Sponsored Guest Accounts List via a report</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3918714#M457370</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. After adding some corrections etc. I now have a Python script that obtains all the Guest data into a CSV file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only issue is that you have to ensure you can access port 9060 via https so if you have firewalls etc. then ensure they allow the traffic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks every one.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 08:27:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3918714#M457370</guid>
      <dc:creator>Scott Gillies</dc:creator>
      <dc:date>2019-09-04T08:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: ISE Sponsored Guest Accounts List via a report</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3918857#M457373</link>
      <description>If you can share the script that will help us out&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Sep 2019 12:05:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3918857#M457373</guid>
      <dc:creator>Jason Kunst</dc:creator>
      <dc:date>2019-09-04T12:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: ISE Sponsored Guest Accounts List via a report</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3919673#M457375</link>
      <description>&lt;P&gt;This is useful link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/docs/identity-services-engine/#!setting-up/cisco-ise" target="_self"&gt;https://developer.cisco.com/docs/identity-services-engine/#!setting-up/cisco-ise&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import http.client&lt;BR /&gt;import base64&lt;BR /&gt;import ssl&lt;BR /&gt;import sys&lt;BR /&gt;import json&lt;BR /&gt;import sys&lt;BR /&gt;import getpass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# host and authentication credentials&lt;BR /&gt;host = "&amp;lt;IP Address&amp;gt;"&lt;BR /&gt;user = "&amp;lt;Admin username - remember to add the 'ERS Admin' group to the Admin User account and enable the 'Access Cisco ISE guest accounts using the programmatic interface (Guest REST API)' on the appropriate Sponsor Group.&amp;gt;"&lt;BR /&gt;password = "&amp;lt;Password&amp;gt;"&lt;/P&gt;&lt;P&gt;# OR Challenge the user for the appropriate&lt;BR /&gt;#host = input("Host IP:")&lt;BR /&gt;#user = input("Username:")&lt;BR /&gt;#password = getpass.getpass()&lt;/P&gt;&lt;P&gt;conn = http.client.HTTPSConnection("{}:9060".format(host), context=ssl.SSLContext(ssl.PROTOCOL_TLSv1_2))&lt;/P&gt;&lt;P&gt;creds = str.encode(':'.join((user, password)))&lt;BR /&gt;encodedAuth = bytes.decode(base64.b64encode(creds))&lt;/P&gt;&lt;P&gt;headers = {&lt;BR /&gt;'accept': "application/json",&lt;BR /&gt;'authorization': " ".join(("Basic",encodedAuth)),&lt;BR /&gt;'cache-control': "no-cache",&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;conn.request("GET", "/ers/config/guestuser/", headers=headers)&lt;/P&gt;&lt;P&gt;#conn.request("GET", "/ers/config/adminuser/", headers=headers)&lt;/P&gt;&lt;P&gt;res = conn.getresponse()&lt;BR /&gt;print(res.status, res.reason)&lt;BR /&gt;data = res.read()&lt;/P&gt;&lt;P&gt;if res.status ==401:&lt;BR /&gt;print("Connection unauthorised - Exit")&lt;BR /&gt;sys.exit()&lt;BR /&gt;elif res.status == 200:&lt;BR /&gt;Rawjsondata = json.loads(data.decode("utf-8"))&lt;BR /&gt;blob = Rawjsondata["SearchResult"]["resources"]&lt;BR /&gt;print("Guest Entry Count = " +str(len(blob)))&lt;BR /&gt;for item in blob:&lt;BR /&gt;print(item["name"],",",end='')# print the guest username&lt;BR /&gt;conn.request("GET", item["link"]["href"], headers=headers) #Fetch the guest details data&lt;BR /&gt;res = conn.getresponse()&lt;BR /&gt;data = res.read()&lt;BR /&gt;Rawjsondata = json.loads(data.decode("utf-8"))&lt;BR /&gt;subblob = Rawjsondata["GuestUser"] # This is the Guest detail containing stuff we want&lt;BR /&gt;print(subblob["guestType"],",",end='') # Guest Type&lt;BR /&gt;print(subblob["status"],",",end='') # Guest account status&lt;BR /&gt;print(subblob["guestInfo"]["lastName"],",",end='') # Last name&lt;BR /&gt;print(subblob["guestInfo"]["firstName"],",",end='') # First name&lt;BR /&gt;print(subblob["guestInfo"]["emailAddress"],",",end='') # Login username - this is the final item&lt;BR /&gt;print(subblob["guestAccessInfo"]["validDays"],",",end='') # Valid Days&lt;BR /&gt;print(subblob["guestAccessInfo"]["fromDate"],",",end='') # From&lt;BR /&gt;print(subblob["guestAccessInfo"]["toDate"],",",end='') # To&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 14:51:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-sponsored-guest-accounts-list-via-a-report/m-p/3919673#M457375</guid>
      <dc:creator>Scott Gillies</dc:creator>
      <dc:date>2019-09-05T14:51:58Z</dc:date>
    </item>
  </channel>
</rss>

