<?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 load many 802.1x users in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/load-many-802-1x-users/m-p/5406817#M1399</link>
    <description>&lt;P&gt;hello.&lt;/P&gt;&lt;P&gt;I have a question and your help.&lt;/P&gt;&lt;P&gt;I need to upload at least 900 Meraki WPA2-Enterprise 802.1X with Meraki RADIUS users , I see that with the APIs it is possible, but only one by one, as if doing it by dashboard. can you give me a light on how to do a bulk upload from excel with the help of the APIs - Python, etc.&lt;BR /&gt;Thank you very much for your answers&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 16:27:56 GMT</pubDate>
    <dc:creator>RubenRios27749</dc:creator>
    <dc:date>2024-02-19T16:27:56Z</dc:date>
    <item>
      <title>load many 802.1x users</title>
      <link>https://community.cisco.com/t5/network-platform-api/load-many-802-1x-users/m-p/5406817#M1399</link>
      <description>&lt;P&gt;hello.&lt;/P&gt;&lt;P&gt;I have a question and your help.&lt;/P&gt;&lt;P&gt;I need to upload at least 900 Meraki WPA2-Enterprise 802.1X with Meraki RADIUS users , I see that with the APIs it is possible, but only one by one, as if doing it by dashboard. can you give me a light on how to do a bulk upload from excel with the help of the APIs - Python, etc.&lt;BR /&gt;Thank you very much for your answers&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 16:27:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/load-many-802-1x-users/m-p/5406817#M1399</guid>
      <dc:creator>RubenRios27749</dc:creator>
      <dc:date>2024-02-19T16:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: load many 802.1x users</title>
      <link>https://community.cisco.com/t5/network-platform-api/load-many-802-1x-users/m-p/5406818#M1400</link>
      <description>&lt;P&gt;Use a loop.  Loop through all the users you want to load, and load them one at a time.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 19:51:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/load-many-802-1x-users/m-p/5406818#M1400</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2024-02-19T19:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: load many 802.1x users</title>
      <link>https://community.cisco.com/t5/network-platform-api/load-many-802-1x-users/m-p/5406819#M1401</link>
      <description>&lt;P&gt;Hello Phillip. &lt;/P&gt;&lt;P&gt;With the help of a colleague who knew python we made this code and it worked perfectly. just download the .csv in this path All the network&amp;gt;All the network&amp;gt;All the network and with that file we load the users info.&lt;/P&gt;&lt;P&gt;import requests&lt;BR /&gt;import pandas as pd&lt;BR /&gt;import json&lt;/P&gt;&lt;P&gt;excel_file_path = 'meraki_network_guests.xlsx'                #Ruta donde se encuentra el archivo excel#&lt;BR /&gt;url = "&lt;A href="https://api.meraki.com/api/v1/networks/IDNEtwork/merakiAuthUsers" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/networks/IDNEtwork/merakiAuthUsers&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;df = pd.read_excel(excel_file_path)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;payload = '''&lt;BR /&gt;{&lt;BR /&gt;"accountType": "802.1X",&lt;BR /&gt;"email": "",&lt;BR /&gt;"name": "",&lt;BR /&gt;"password": "",&lt;BR /&gt;"emailPasswordToUser": true,&lt;BR /&gt;"isAdmin": false,&lt;BR /&gt;"authorizations": [&lt;BR /&gt;{&lt;BR /&gt;"ssidNumber": number of ssid,&lt;BR /&gt;"expiresAt": "Never"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;'''&lt;BR /&gt;for index, row in df.iterrows():&lt;BR /&gt;data = json.loads(payload)&lt;/P&gt;&lt;P&gt;data["email"] = row['email']&lt;BR /&gt;data["name"] = row['name']&lt;BR /&gt;data["password"] = row['password']&lt;/P&gt;&lt;P&gt;headers = {&lt;BR /&gt;"Authorization": "Bearer HERE KEY",&lt;BR /&gt;"Content-Type": "application/json",&lt;BR /&gt;"Accept": "application/json"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;response = requests.request('POST', url, headers=headers, data = json.dumps(data))&lt;/P&gt;&lt;P&gt;print(response.text.encode('utf8'))&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 16:09:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/load-many-802-1x-users/m-p/5406819#M1401</guid>
      <dc:creator>RubenRios27749</dc:creator>
      <dc:date>2024-02-20T16:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: load many 802.1x users</title>
      <link>https://community.cisco.com/t5/network-platform-api/load-many-802-1x-users/m-p/5406820#M1402</link>
      <description>&lt;P&gt;Well done!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 18:05:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/load-many-802-1x-users/m-p/5406820#M1402</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2024-02-20T18:05:05Z</dc:date>
    </item>
  </channel>
</rss>

