manageadmins.py error post 400

guigui
New here

manageadmins.py error post 400

Hi, 

I have a problem with the automatisation script manageadmins.py which is on the git hub of meraki. Indeed my problem is that when i start the script with the option /all it doensn t work. 

here is a picture of the error : 
 

 

GET https://api.meraki.com/api/v1/organizations/CENSURE/admins
200
POST https://api.meraki.com/api/v1/organizations/CENSURE/admins
body {'email': 'censure', 'name': 'm', 'orgAccess': 'full'}
400
2024-04-17 10:09:59.511672 -- Operation failed

i hope that you could answer at me and give a response.
Thank you very much. 
Have a nice day 

2 Replies 2
alemabrahao
Kind of a big deal
Kind of a big deal

 Check if the headers in your request are correct. It would be interesting if you could share the code you are using.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
PhilipDAth
Kind of a big deal
Kind of a big deal

What line does the error say it is happening on?

This is the script for anyone else interested.
https://github.com/meraki/automation-scripts/blob/master/manageadmins.py 

Get notified when there are additional replies to this discussion.