Skip to main content

Creating admin users in gf-app

Getting yourself set up as a user

Send a message in the engineering Slack channel asking a colleague to:

  1. Invite you via User Management in the app for your chosen environment (dev, stag, or prod)
  2. Grant you the appropriate Staff Permissions in the database for that environment

Follow the invite email from WorkOS to set your password.

For the person setting up the user

  1. Invite the user via User Management in the app for the relevant environment
  2. Once the user has accepted the invite, find their WorkOS user ID in the database
  3. Insert their staff permissions:
INSERT INTO gfapp_staff_permissions (workos_user_id, permissions, created_at, updated_at)
VALUES (
'<workos-user-id>',
ARRAY['VIEW_ANY_ACCOUNT', 'EDIT_ACCOUNTS'],
now(),
now()
);

Adjust the permissions array as needed for the role. VIEW_ANY_ACCOUNT and EDIT_ACCOUNTS are appropriate for engineers.