Script to auto cleanout unused accounts from guest user management portal

BeckyBoo
New here

Script to auto cleanout unused accounts from guest user management portal

Hello All!

 

I have looked high and low for documentation on how to automatically cleanout Guest user accounts after a period of not being used, or set a expiry date upon self registration but all posts I seem to find have been archived so I have not get very far.

 

My guest network uses Meraki Cloud Authentication and users are allowed to create their own accounts. These accounts are automatically authorised.

 

What I would like to do is delete any of these self registered guest accounts after 30 days on inactivity or set an expiry date on them upon self registration, still keeping manual administration to a minimum.

 

I do not see to automatically set an expiry date, please correct me if I am wrong?

I think the other way would be possible via API but cannot anyone tell me how to start with this?

 

I have seen this link but I am a total beginner and have no clue where to start or how to run this, also I do not see any option to check for a period of inactivity.

 

Is anyone able to help out a total beginner and hold my hand to get this working?

 

Thanks in advance!

6 Replies 6
alemabrahao
Kind of a big deal

You can remove user from dashboard manually and that will delete the user from the org, but using API i think that is not possible because API just unauthorizes the user in the network , does not delete it from org level.

 

Managing User Accounts using Meraki Cloud Authentication - Cisco Meraki

 

Delete Network Meraki Auth User - Meraki Dashboard API v1 - Cisco Meraki Developer Hub Documentation

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.
alemabrahao
Kind of a big deal

You can set an expiration date.

 

alemabrahao_0-1743077591272.png

 

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.
BeckyBoo
New here

Hi @alemabrahao 

 

If the creation of a user account is automatically approved, how can I set this field as a default value for all new accounts being created?
I don't want to have to keep going in to all new accounts to set this expiry date manually.

alemabrahao
Kind of a big deal

It won't be an easy task, it will involve knowledge in programming and APIs.

Basically you will need to use two APIs, one to GET users and another to update them.

https://developer.cisco.com/meraki/api-v1/get-network-meraki-auth-users/

 

https://developer.cisco.com/meraki/api-v1/update-network-meraki-auth-user/

 

But of course you still have to develop all the logic according to your needs.

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

alemabrahao
Kind of a big deal

@PhilipDAth , from what I understand she is not using Sponsored guest login but rather an open SSID with Sign-on with Meraki Cloud Authentication, which allows guests to create their own account.

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.
Get notified when there are additional replies to this discussion.