Skip to main content

Service Accounts

A service account is a non-human principal for automation: CI/CD pipelines, bundle publishing, and calls to the API or the mass CLI. A service account gets its permissions from the groups it belongs to. In the built-in admin group, it has full access to the organization.

Creating a service account requires organization:manageServiceAccounts.

  1. Open the Service accounts tab of your organization settings.
  2. Click New service account.
  3. Enter a name and click Create.
  4. Copy the secret. Massdriver shows it only once.
  5. Add the service account to a group.

The CLI and the CI/CD integrations read the secret from MASSDRIVER_API_KEY:

shell
export MASSDRIVER_ORGANIZATION_ID=your-org
export MASSDRIVER_API_KEY=your-service-account-secret