How do I automatically deactivate users after a certain amount of time?

Jessie
Jessie
  • Updated

Issue

Users want to know if Benchling has a feature to automatically deactivate users who have not used the system for an extended period of time (e.g., 30 or 90 days).

Environment

Resolution

Benchling does not have a built-in feature to automatically deactivate inactive users. However, this can be accomplished using the Benchling API. Follow the steps below to set the deactivation period to 30 or 90 days:

1. Retrieve User Activity:

2. Calculate Inactivity Period:

  • Compare the current date with the last activity date retrieved from the previous step.
  • Determine if the user has been inactive for the specified period (e.g., 30 or 90 days).

3. Update User Status:

  • Use the Update User Status API endpoint to set the user’s status to suspended if they have been inactive for the specified period.

Note: This solution requires custom development and periodic execution to ensure inactive users are deactivated automatically.

Was this article helpful?

Have more questions? Submit a request