cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2336
Views
0
Helpful
4
Replies

How to get Captive Portal users' expiration date using API?

Marc_Abaya
Level 3
Level 3

We're using Captive Portal/Splash Login to authenticate our WIFI users. Our time period is 30 days and they need to sign-in again.

Just curious if there's a way to capture the users' expiration date via API? Our goal is to notify the users a day before their expiration date. I tried getNetworkClients but the expiration dates aren't showing there. Thanks in advance.

1 Accepted Solution

Accepted Solutions

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

So, it's no possible.

Meraki does not expose expiration dates for users authenticated via Google OAuth through the Dashboard API.

I am not a Cisco 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.

View solution in original post

4 Replies 4

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

Take a look at this API.

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

I am not a Cisco 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.

Sorry I forgot to mention we're using Google OAuth for the sign-in:

image.png

The /merakiAuthUsers request didn't show any results.

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

So, it's no possible.

Meraki does not expose expiration dates for users authenticated via Google OAuth through the Dashboard API.

I am not a Cisco 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.

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

I would look in Network-Wide/Events, and find an event that relates to a user logging in. Note the info in it.

Then, in your script, retrieve just these kinds of events from the event log. Note the time of the most recent login and check if it is close to 30 days ago.

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