All Users
Where: Users › All Users
Who can use it: Admins and Owners
Every person who signs in to Tursio needs an account with a role, and the role decides what they can see and change. On User Management, you add people, set their role, issue license keys, and remove access. You can deactivate a user and restore them later with their data and history, or delete them for good.
Roles
Each user has one of four roles:
- Admin: full control. Admins see and manage users of every role, including other Admins. Only Admins can deactivate and restore users.
- Owner: manages the people who use Tursio day to day. Owners see Owners, Users, and Viewers, but not Admins. They can add, delete, and issue license keys only for Users and Viewers.
- User: asks questions and works with data. Users can't open User Management.
- Viewer: read-only access to insights. Viewers can't open User Management, and they don't see the Context page.
New users see no databases
Adding a User or Viewer doesn't give them access to any database. An Admin or Owner must grant it on the Access Control tab. See Access Control.
The All Users tab
The tab lists each user with their Name, Logins, Role, and Date Added. Built-in marks the admin account Tursio creates at install. Deactivated marks users whose access you turned off.
- Type in Search by name, login or role to find a user.
- Use the status filter to show All, Active, or Deactivated users. Each option shows a count.
- Open the row menu (⋯) to manage a user's license keys, deactivate or restore them, or delete them.
(1) Status filter, (2) add a user, (3) row menu. Deactivate and Delete are greyed out for the built-in admin.
Users sign in with Log In with Microsoft or Google, depending on your setup, using the email on their account. A license key is the alternative when they can't use either (see License keys).
Add a user
- Select + at the top right of the All Users tab. The Add user dialog opens.
- Enter a Name. Use only letters, numbers, or underscores (_), up to 30 characters.
- Enter an Email, or a Microsoft Entra group ID to add everyone in that group. The field is optional, but without it the user can sign in only with a license key.
- Pick a Role. Admins can pick User, Owner, Admin, or Viewer. Owners can pick User or Viewer.
- Select Add. The user appears in the list.
(1) Name, (2) Email or Entra group ID, (3) Role.
Tursio checks the form before it saves:
- An email or group ID that isn't valid shows Enter a valid email or Entra group ID.
- A name that's already in use, or an email that belongs to another user, is rejected. Pick a different one.
License keys
A license key lets a person sign in without Microsoft or Google. Use it when your network can't reach those services, or for someone who doesn't have a work account.
- Open the row menu (⋯) on the user and select License keys. The Manage license keys dialog shows the user's name and email.
- Pick an expiration date under Add license.
- Select Generate license. The new key appears under Existing licenses with its expiration date.
- Copy the key with the copy icon next to it and send it to the user.
(1) Expiration date, (2) Generate license, (3) existing keys.
To sign in with a key, the user selects License Code on the login screen, pastes the key into License Code, and selects Submit.
Limits depend on who issues the key:
- Owners can issue a key only while the user has fewer than 5 active keys. The expiration can be at most 52 weeks away. Owners see only the user's latest active key.
- Admins have no limit on the number of keys or the expiration date, and see all of a user's keys.
A key works until the end of its expiration date (23:59:59 UTC).
Deactivate a user
Deactivating turns off a user's access but keeps their account, data, and history. You can restore them anytime. Only Admins can deactivate users.
- Open the row menu (⋯) on the user and select Deactivate user.
- Read what changes. If the user has API tokens, the dialog shows how many are revoked.
- Select Deactivate user. The user is signed out right away and shows Deactivated in the list.
(1) Confirm with Deactivate user.
A deactivated user can't sign in. Their license keys and API tokens stop working, and they lose their database access until you restore them.
Restore a user
- Set the status filter to Deactivated, or find the user in the list. Deactivated rows are greyed out.
- Open the row menu (⋯) and select Restore user.
(1) Deactivated tag, (2) Restore user.
Restoring brings back the account, its logins, and its database access in Access Control. License keys and API tokens revoked at deactivation stay revoked. Generate a new license key if the user needs one.
Delete a user
Delete removes a user permanently. You can delete active or deactivated users. Admins can delete any user. Owners can delete Users and Viewers.
Delete can't be undone
Deleting removes the account, its logins, license keys, API tokens, and database access. The person loses access to Tursio immediately. If you add the same email again later, Tursio creates a new account and none of the old data comes back. Deactivate the user instead if you might need them again.
- Open the row menu (⋯) on the user and select Delete.
- Read what gets deleted, then select I want to delete this user. For an active user, Admins also see Deactivate instead, which opens the deactivate dialog.
- Type the user's login exactly as shown. A user without a login is confirmed with their name.
- Select Delete this user.
(1) Deactivate instead, (2) I want to delete this user.
(1) Type the user's login, (2) Delete this user.
Audit history is kept and shows the person as "Deleted user."
Cleanup
Deactivated users stay in the list, so you can trace who has ever had access. To remove one for good, set the status filter to Deactivated and delete the user.
Delete all deactivated users at once (SQL)
To remove every deactivated user in one pass, run this script against Tursio's internal PostgreSQL. It removes the same rows that Delete does. It can't be undone, so take a backup first.
-
Save this script as
user_delete.sql. It doesn't commit, so you can check the result first.BEGIN; DO $$ DECLARE uids bigint[]; BEGIN -- 1. Collect IDs of all deactivated (soft-deleted) users SELECT array_agg(id) INTO uids FROM "public"."User" WHERE deleted IS NOT NULL; IF uids IS NULL OR array_length(uids, 1) IS NULL THEN RAISE NOTICE 'No deactivated users found.'; RETURN; END IF; RAISE NOTICE 'Found % deactivated users. IDs: %', array_length(uids, 1), uids; -- 2. Remove every row that refers to them DELETE FROM "public"."AccountUserAccessControl" WHERE "user" = ANY(uids); DELETE FROM "public"."ConnectionUserAccessControl" WHERE "user" = ANY(uids); DELETE FROM "public"."UserAccessToken" WHERE "user" = ANY(uids); DELETE FROM "public"."Login" WHERE "user" = ANY(uids); -- 3. Remove the users DELETE FROM "public"."User" WHERE id = ANY(uids); RAISE NOTICE 'Deleted % user(s). Run COMMIT to keep the change.', array_length(uids, 1); END $$; -
Find the Postgres container, copy the script in, and open psql:
-
At the
postgres=#prompt, run the script: -
Check the user and login tables:
-
Run
COMMIT;to keep the change, orROLLBACK;to undo it. If the prompt shows an aborted transaction, runROLLBACK;until you're back atpostgres=#. Exit with\q.
Tips and limits
- The built-in
adminaccount can't be deactivated or deleted. - You can't deactivate or delete your own account. Ask another Admin or Owner.
- Owners can't see or manage Admins, and can't manage other Owners.
- An email or Entra group ID can belong to only one user.
- Dates in Date Added use your time zone, shown in the column header.
- To control which databases each user can query, use the Access Control tab. See Access Control.