Support an "expire if inactive" option

Created on 16 November 2022, about 2 years ago
Updated 19 September 2024, 3 months ago

Problem/Motivation

For security reasons, we would like to be able to expire roles for inactive users, separate from the "standard" role expiry.

Proposed resolution

Add a field to the "edit role" functionality (where "default duration" already lives) for "Inactive expiry for the role [rolename]". Help text could be something like "Enter a time span you want to set as the duration this role should be preserved from a user's last login, or leave blank to not expire this role due to inactivity." (followed by the same examples as "default duration")

When setting the role expiry when this is set, for the "leave the field blank" option:

  • if there is no default duration, instead of saying "this role will never expire" say something like "the role will only expire if the user is inactive for [period set]"
  • If there is a default duration, add at the end "or if the user is inactive for [period set], whichever comes first"

Remaining tasks

  1. Decide if this is a feature this module wants to take on.
  2. Decide if the proposed implementation is acceptable.
  3. Implement it. :)

User interface changes

See proposed resolution.

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada kpaxman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024