Update Okta sandbox API token
This guide explains how to update and manage Okta sandbox API tokens used for creating and updating Okta profiles for andis and affiliates. This is important for the andi and onboarding services and the setup of Worksome affiliates.
Important Notes
- Sandbox API tokens are only valid for one month from creation
- Tokens need to be added while you have super user permissions (admin role permissions are insufficient and result in an error, see below)
- IT can set up an account with the appropriate permissions. Submit a ticket requesting Okta admin access as a Super User and specify it is for the sandbox. Access is timeboxed as it is charged for per user, make sure to specify why and for how long access is required.
- New API tokens can be generated in the admin panel
- Tokens need to then be updated in the Parameter store in AWS (e.g.
/luna/development/okta-apitoken)
Errors encountered
- Missing API key (401 Unauthorized)
- API key with insufficient permissions (403 Forbidden)
- Job role mismatch (see below, 400 Bad Request)
Okta Sandbox Job Roles
When creating test andis/affiliates, ensure they match one of the following available job roles in the Okta sandbox:
- Associate - Level 1
- Platform Engineer
- Product Developer - Level 3
- Product Developer - Level 5
- Product Analyst - Level 5
- Chief for Global Operations
- Affiliate
