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

Solved
Marc_Abaya
Getting noticed

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

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

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 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.

View solution in original post

4 Replies 4
alemabrahao
Kind of a big deal
Kind of a big deal

Take a look at this API.

 

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

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.
Marc_Abaya
Getting noticed

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

Marc_Abaya_0-1756156803088.png

 

 

The /merakiAuthUsers request didn't show any results.

alemabrahao
Kind of a big deal
Kind of a big deal

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 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

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/

Get notified when there are additional replies to this discussion.