# Can I set an expiration date for a permission

**URL:** <https://community.auth0.com/t/can-i-set-an-expiration-date-for-a-permission/116710>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [September 20, 2023, 11:47am UTC](https://community.auth0.com/t/can-i-set-an-expiration-date-for-a-permission/116710 "2023-09-20T11:47:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![p.friedrich](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/p.friedrich/32/50070_2.png) [@p.friedrich](https://community.auth0.com/u/p.friedrich)\
**Post date:** [September 20, 2023, 11:47am UTC](https://community.auth0.com/t/can-i-set-an-expiration-date-for-a-permission/116710/1 "2023-09-20T11:47:12Z")

</div>

Hello everyone,

is there a way to set an expiration date for a permission? I’m asking because we would like to activate / deactivate features for certain users based on permissions.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 20, 2023, 5:17pm UTC](https://community.auth0.com/t/can-i-set-an-expiration-date-for-a-permission/116710/3 "2023-09-20T17:17:58Z")

</div>

Hey there @p.friedrich welcome to the community!

While there isn’t an option to set an expiration date for permissions, you could certainly utilize the Management API for something like this - There is an endpoint to both [remove permissions](https://auth0.com/docs/api/management/v2/users/delete-permissions) from a user as well as an entire [role](https://auth0.com/docs/api/management/v2/users/delete-user-roles). I can see either working depending on how you have permissions assigned to users.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 4, 2023, 5:18pm UTC](https://community.auth0.com/t/can-i-set-an-expiration-date-for-a-permission/116710/4 "2023-10-04T17:18:21Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
