# User expire date and time

**URL:** https://forum.pritunl.com/t/user-expire-date-and-time/1271
**Category:** Pritunl VPN
**Tags:** pritunl
**Created:** [July 31, 2023, 6:53pm UTC](https://forum.pritunl.com/t/user-expire-date-and-time/1271 "2023-07-31T18:53:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Europe](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/e/8dc957/32.png) [@Europe](https://forum.pritunl.com/u/Europe)
#### Post date: [July 31, 2023, 6:53pm UTC](https://forum.pritunl.com/t/user-expire-date-and-time/1271/1 "2023-07-31T18:53:59Z")

</div>

Hello!  
I didn’t find any option for Users expire date and time setting, I’ve searched through documentation and found nothing about that.  
is there anything to control users subscription time?

---

<div class="post-metadata">

### Author: ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)
#### Post date: [July 31, 2023, 7:40pm UTC](https://forum.pritunl.com/t/user-expire-date-and-time/1271/2 "2023-07-31T19:40:44Z")

</div>

This is a feature in Pritunl Zero and Pritunl Cloud in the user settings. There isn’t any option for expiring users in the Pritunl VPN server.

---

<div class="post-metadata">

### Author: ![Europe](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/e/8dc957/32.png) [@Europe](https://forum.pritunl.com/u/Europe)
#### Post date: [July 31, 2023, 8:21pm UTC](https://forum.pritunl.com/t/user-expire-date-and-time/1271/3 "2023-07-31T20:21:47Z")

</div>

Isn’t this option one of the major requirements for every VPN Server? I’m really shocked 😲

---

<div class="post-metadata">

### Author: ![netpro25](https://forum.pritunl.com/user_avatar/forum.pritunl.com/netpro25/32/851_2.png) [@netpro25](https://forum.pritunl.com/u/netpro25)
#### Post date: [June 17, 2024, 2:17pm UTC](https://forum.pritunl.com/t/user-expire-date-and-time/1271/4 "2024-06-17T14:17:28Z")

</div>

I’d like to expand on this and see if it’s possible to expire an account that has not signed into Pritunl for over X days. Is it possible to disable a user VIA the command line or API?

If you can disable a user VIA the command line then you could also setup a script to expire a user after X days per the posters original request.

---

<div class="post-metadata">

### Author: ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)
#### Post date: [June 19, 2024, 6:00am UTC](https://forum.pritunl.com/t/user-expire-date-and-time/1271/5 "2024-06-19T06:00:59Z")

</div>

Newer releases show last active and have an option to sort by last active in the web console. Both the API and database could be used to find and disable the users.
