
Issue Personal Access Tokens for Service Accounts (Beta)
You can now issue personal access tokens (PATs) for service accounts, in beta. Run Codatum CLI with a service account's permissions from environments that should not depend on a specific user, such as CI.
Until now, PATs were issued per user, so CI jobs ran with the permissions of whoever issued the token. With a service account PAT, your automation runs under an account that has only the permissions it needs, unaffected by team changes or people leaving.
Key features
Issue from Workspace settings: In Workspace settings > Personal Access Tokens, click Issue service account token and specify the Service account, Name, and Expiration. You can also open it from the row menu in the service account list
Restrict token permissions: By default, a token inherits all of the service account's permissions. Turn on Restrict token permissions to limit it to specific connections, notebooks, and tags
Manage user and service account tokens in one list: The list now has Account and Issuer columns, and you can filter by All accounts, Users, or Service accounts
Keeps working after the issuer leaves: The token stays valid even if the user who issued it leaves the workspace. CLI commands such as
cdm auth whoamishow the service account's name
Example use cases
Automate notebook runs and updates from CI, such as GitHub Actions, with a service account's permissions
Run scheduled data-check scripts under an account the team manages instead of a personal account
Limit automation tokens to specific connections and notebooks so they have no more access than they need
Related documentation
Availability
Personal access tokens are in beta, and the specification might change without notice.
Only workspace owners can issue and edit service account tokens. Tokens expire after at most 365 days and cannot be set to never expire. A token is shown only once, right after it is issued. Deleting a service account also deletes its tokens.
IP access control does not apply to service account tokens. Workspace policies that disallow Codatum CLI still apply.