List Inactive Users
This method lists Retool users who have not logged in for a specified number of days. It helps identify users who are inactive and may no longer need access.
For more information on the API for listing users, see List users (opens in a new tab).
Required Permission Scopes:
Users > Read
SDK Import:
from admyral.actions import list_retool_inactive_users
Arguments:
Argument Name | Description | Required |
---|---|---|
Inactivity Threshold in Days inactivity_threshold_in_days | The number of days since the last login after which a user is considered inactive. Default: 60 | Yes |
Returns
A JSON array of JSON objects.
Required Secrets
Secret Placeholder | Description |
---|---|
RETOOL_SECRET | Retool secret. See Retool setup |
SDK Example
inactive_users = list_retool_inactive_users(
secrets={"RETOOL_SECRET": "my_stored_retool_secret"}
)