<?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 API add MAC address to specified Identity Group in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3763896#M487046</link>
    <description>&lt;P&gt;We have an ISE instance set up for testing, I'm a developer but have never used ISE before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm wanting to do should be simple but I've not found docs on it so far after searching.&amp;nbsp; I want to add a MAC address to a specified Identity Group.&amp;nbsp; More specifically I want to set it up using the API.&amp;nbsp; My tool of choice here is CURL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this API call, the Identity Group will already be defined, however the MAC address will be new to ISE (a brand new device).&amp;nbsp; How would I do this?&lt;BR /&gt;&lt;BR /&gt;I have seen some great docs here like this:&amp;nbsp;&lt;A href="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/ta-p/3622623" target="_self"&gt;ISE ERS API Examples&lt;/A&gt;&amp;nbsp;- but it just doesn't cover this specific case.&amp;nbsp; Please remember I'm new to ISE and actually a coder.&amp;nbsp; Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 17:20:29 GMT</pubDate>
    <dc:creator>SamuelFullman6827</dc:creator>
    <dc:date>2018-12-14T17:20:29Z</dc:date>
    <item>
      <title>ISE API add MAC address to specified Identity Group</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3763896#M487046</link>
      <description>&lt;P&gt;We have an ISE instance set up for testing, I'm a developer but have never used ISE before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm wanting to do should be simple but I've not found docs on it so far after searching.&amp;nbsp; I want to add a MAC address to a specified Identity Group.&amp;nbsp; More specifically I want to set it up using the API.&amp;nbsp; My tool of choice here is CURL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this API call, the Identity Group will already be defined, however the MAC address will be new to ISE (a brand new device).&amp;nbsp; How would I do this?&lt;BR /&gt;&lt;BR /&gt;I have seen some great docs here like this:&amp;nbsp;&lt;A href="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/ta-p/3622623" target="_self"&gt;ISE ERS API Examples&lt;/A&gt;&amp;nbsp;- but it just doesn't cover this specific case.&amp;nbsp; Please remember I'm new to ISE and actually a coder.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:20:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3763896#M487046</guid>
      <dc:creator>SamuelFullman6827</dc:creator>
      <dc:date>2018-12-14T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: ISE API add MAC address to specified Identity Group</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764031#M487048</link>
      <description>&lt;P&gt;I believe the online documentation shows this (https://&amp;lt;ise-ip&amp;gt;:9060/ers/sdk). Go to API Documentation &amp;gt; Endpoint &amp;gt; Create. Is that what you are looking for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 18:57:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764031#M487048</guid>
      <dc:creator>dodgerfan78</dc:creator>
      <dc:date>2018-12-14T18:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: ISE API add MAC address to specified Identity Group</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764050#M487053</link>
      <description>&lt;P&gt;No, I do not want to create an endpoint.&amp;nbsp; In fact nothing to do with Endpoints.&amp;nbsp; I want to add a new *&lt;STRONG&gt;MAC address&lt;/STRONG&gt;* to an existing *&lt;STRONG&gt;Identity Group&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's irrelevant to this post, but that Identity group&amp;nbsp;does contain endpoints.&amp;nbsp; So my device with the new MAC will get on those endpoints because of how the Identity Group is set up.&amp;nbsp; But again, I don't want to add an endpoint.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 19:11:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764050#M487053</guid>
      <dc:creator>SamuelFullman6827</dc:creator>
      <dc:date>2018-12-14T19:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: ISE API add MAC address to specified Identity Group</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764108#M487057</link>
      <description>&lt;P&gt;I think there might be some confusion on the terminology here because an endpoint in ISE is referenced by a unique mac address.&amp;nbsp; Each mac address corresponds to an endpoint.&lt;BR /&gt;&lt;BR /&gt;For purposes of this, mac address = endpoint/device.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A device such as a laptop with both a wired and wireless adapter is currently treated as two endpoints in ISE, two unique mac addresses.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 20:27:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764108#M487057</guid>
      <dc:creator>Damien Miller</dc:creator>
      <dc:date>2018-12-14T20:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: ISE API add MAC address to specified Identity Group</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764113#M487060</link>
      <description>&lt;P&gt;I believe he might be trying to add a MAC to a profile condition so that the device automatically gets put in the right Identity Group based on MAC address during&amp;nbsp;profiling. Certainly doable, but I don't see those capabilities in the API.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 20:33:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764113#M487060</guid>
      <dc:creator>dodgerfan78</dc:creator>
      <dc:date>2018-12-14T20:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: ISE API add MAC address to specified Identity Group</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764127#M487063</link>
      <description>&lt;P&gt;As Damien noted, endpoint is mac address. With the create endpoint operation you can also put it into the group as well during creation. This essentially maps the MAC address to the endpoint group, which you can use to influence policy for the MAC.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 21:16:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764127#M487063</guid>
      <dc:creator>howon</dc:creator>
      <dc:date>2018-12-14T21:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: ISE API add MAC address to specified Identity Group</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764142#M487066</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/55865"&gt;@dodgerfan78&lt;/a&gt;&amp;nbsp;say I may be "&lt;SPAN&gt;trying to add a MAC to a profile condition" - possibly but here's a screenshot now that I'm getting more familiar.&amp;nbsp; What you see when I click the green "Add" button, I'm wanting to do via API - ie, add MAC address FF:FF:FF:FF:FF:FF to the `RegisteredUsers` Group shown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-12-14 at 3.33.39 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/26240iDC1CBE74922ADF8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-12-14 at 3.33.39 PM.png" alt="Screen Shot 2018-12-14 at 3.33.39 PM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 21:39:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764142#M487066</guid>
      <dc:creator>SamuelFullman6827</dc:creator>
      <dc:date>2018-12-14T21:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: ISE API add MAC address to specified Identity Group</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764163#M487069</link>
      <description>&lt;P&gt;Ok, those are Endpoints. This is how I did it. First get the group ID:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;tools$ curl --tlsv1.1 -k -H 'ACCEPT: application/json' -H 'ERS-Media-Type: identity.endpointgroup.1.1' "https://admin:1111111@1.1.1.1:9060/ers/config/endpointgroup/name/RegisteredDevices" &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "id" : "aa13bb40-8bff-11e6-996c-525400b48521",&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a file with mac address and the group id of the desired group (above). I am not a coder so I may&amp;nbsp;have extra stuff in here I don't need:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mac.xml:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;ns0:endpoint xmlns:ns0="identity.ers.ise.cisco.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="ers.ise.cisco.com" xmlns:ers="ers.ise.cisco.com" description="description" id="id" name="name"&amp;gt;
&amp;lt;groupId&amp;gt;aa13bb40-8bff-11e6-996c-525400b48521&amp;lt;/groupId&amp;gt;
&amp;lt;mac&amp;gt;00:01:02:03:04:05&amp;lt;/mac&amp;gt;
&amp;lt;staticGroupAssignment&amp;gt;true&amp;lt;/staticGroupAssignment&amp;gt;
&amp;lt;staticProfileAssignment&amp;gt;false&amp;lt;/staticProfileAssignment&amp;gt;
&amp;lt;/ns0:endpoint&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -v -X POST --tlsv1.1 -v -k -H 'ACCEPT: application/xml' -H 'ERS-Media-Type: identity.endpoint.1.2' --header 'Content-Type:application/xml' https://admin:11111@1.1.1.1:9060/ers/config/endpoint -d @mac.xml&lt;/PRE&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>Fri, 14 Dec 2018 22:28:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3764163#M487069</guid>
      <dc:creator>dodgerfan78</dc:creator>
      <dc:date>2018-12-14T22:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: ISE API add MAC address to specified Identity Group</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3793246#M487145</link>
      <description>&lt;P&gt;Hi There, I have accepted your answer and it did work, however, I thought I'd add something I learned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not to attach an existing endpoint to an identity group, it looks like it can only attach a NEW endpoint to an existing identity group. Otherwise, you'll get something like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&amp;gt;&amp;lt;ns3:ersResponse operation="POST-create-endpoint" xmlns:xs="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns:ns3="ers.ise.cisco.com"&amp;gt;&amp;lt;link rel="related" href="&lt;A href="https://1.1.1.1:9060/ers/config/endpoint" target="_blank"&gt;https://1.1.1.1:9060/ers/config/endpoint&lt;/A&gt;" type="application/xml"/&amp;gt;&amp;lt;messages&amp;gt;&amp;lt;message type="ERROR" code="CRUD operation exception"&amp;gt;&amp;lt;title&amp;gt; Failed to update endpoint 55:01:00:00:00:01 to aa13bb40-8bff-11e6-996c-525400b48521 null&amp;lt;/title&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;/messages&amp;gt;&amp;lt;/ns3:ersResponse&amp;gt;&lt;/P&gt;&lt;P&gt;which is not very helpful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:39:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-api-add-mac-address-to-specified-identity-group/m-p/3793246#M487145</guid>
      <dc:creator>SamuelFullman6827</dc:creator>
      <dc:date>2019-02-06T15:39:00Z</dc:date>
    </item>
  </channel>
</rss>

