Skip to main content

Creating admin users in gf-app

  1. Invite the user via User Management in the app
    • This is generally done using the goodfit account for production accounts
  2. Follow the instructions sent in the email invite
  3. 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
  4. Find your username in AWS Cognito
    • It should look something like a3f8b1c2-54d6-47e1-ba9d-01e34f8c7a21
  5. 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'