Skip to content

Manage users and their groups

You need: to be signed in as an admin (a member of virtufin-admins), and an API key of a Pocket ID admin. Only admins see Config > Users.

Connect Pocket ID (once)

  1. In Pocket ID, open Settings > API keys and create a key. Copy it: Pocket ID shows it only once.
  2. In the app, open Config > Users.
  3. Under Identity provider, enter the URL (for example https://pocket-id.haenerconsulting.com) and paste the API key.
  4. Click Test. You should see Works: N users, M groups. The identity provider tested
  5. Click Save. The key field now shows Set, …abcd. The key stays on the app server and is never shown again.

Add a user

  1. Click Add user….
  2. Enter a Username and an Email, plus a first and last name if you like, and tick the Groups. For example, virtufin-operators lets the user write, virtufin-users lets them read. Adding a user
  3. Click Add. A one-time sign-in link appears.

The one-time sign-in link 4. Copy the link and send it to the user. It is valid for 24 hours and works once; with it the user signs in and registers a passkey.

If the user loses the link, click Link on their row for a new one.

Change a user's groups

Click Groups… on the user's row, tick the groups they should have, and click Save.

A user's groups

This replaces all of the user's groups. The user's next sign-in picks up the change: a session lasts until it expires, at most a working day.

Remove a user

Click Remove… on the row and confirm. The user is deleted in Pocket ID and can no longer sign in. You cannot remove yourself.

When it does not work

Symptom Cause and fix
No Users entry under Config You are not in virtufin-admins. Ask an admin, then sign in again.
the provider refused the API key (401 …) The key is wrong, revoked, or not an admin's. Create a new key in Pocket ID.
… is not reachable Wrong URL, or Pocket ID is down. Check the URL in a browser.
The identity provider requires an email Pocket ID's Require user email setting is on: enter an email.
the stored API key can no longer be read … The app got a new session key. Enter the API key again and Save.
Username is already in use Pick another username.