- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can set an expiration date.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you got the "Maximum sponsored duration" configured?
https://documentation.meraki.com/MR/Encryption_and_Authentication/Sponsored_Guest#Determining_Need
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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.
Please, if this post was useful, leave your kudos and mark it as solved.
