Creating admin users in gf-app
- Invite the user via User Management in the app
- This is generally done using the goodfit account for production accounts
- Follow the instructions sent in the email invite
- Log into AWS Cognito for the corresponding environment
- Amazon Cognito -> User Pools -> Choose the correct user pool
- For prod, this would be gf-app-user-pool
- Amazon Cognito -> User Pools -> Choose the correct user pool
- Find your username in AWS Cognito
- It should look something like
a3f8b1c2-54d6-47e1-ba9d-01e34f8c7a21
- It should look something like
- Setup user & staff permissions in the corresponding database
- Be sure to select the correct permissions basing on what you require; these steps are for engineers.
-- Staff Permissions
INSERT INTO gfapp_staff_permissions VALUES(
'a3f8b1c2-54d6-47e1-ba9d-01e34f8c7a21',
ARRAY['VIEW_ANY_ACCOUNT', 'EDIT_ACCOUNTS'],
now(),
now()
);
-- App User Permissions
UPDATE gfapp_user
SET permissions = ARRAY['USER', 'ADMIN']
WHERE cognito_user_id = 'a3f8b1c2-54d6-47e1-ba9d-01e34f8c7a21'