List Groups per User
This method lists all groups a user is a member of, along with the last time a user was active in Retool. It helps administrators understand which groups users belong to and their activity levels.
For more information on the Retool API, see Retool API Documentation (opens in a new tab).
SDK Import:
from admyral.actions import list_groups_per_user
Arguments
Argument Name | Description | Required |
---|
Returns
A JSON object containing a mapping from users to another JSON object storing the names of the groups a user belongs to as well as the last active date.
Schema:
{
user_email: {
"last_active": last_active_date,
"groups": list_of_group_names
}
}
Required Secrets
Secret Placeholder | Description |
---|---|
RETOOL_SECRET | Retool secret. See Retool setup |
SDK Example
groups_per_user = list_groups_per_user(
secrets={"RETOOL_SECRET": "my_stored_retool_secret"}
)