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:
- Invite you via User Management in the app for your chosen environment (dev, stag, or prod)
- 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
- Invite the user via User Management in the app for the relevant environment
- Once the user has accepted the invite, find their WorkOS user ID in the database
- 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.