You can create a service account in a project to provide an external system with credentials for programmatic API access.
Before you begin
You have the service_account:create permission in the target project, or you are a project administrator.
At least one project exists in automation orchestrator.
About this task
Creating a service account is a two-step process: you create the service account, and then you create one or more credentials for it. The credential contains the client ID and client secret that the external system uses to authenticate.
Procedure
Send a POST request to the service accounts endpoint.
Include the project_id of the project where you want to create the service account:
You can optionally include an expires_at timestamp (ISO 8601 with timezone) to set a custom expiration for the credential. If you omit expires_at, automation orchestrator sets the expiration automatically based on the configured maximum credential lifetime.
The client_secret is displayed exactly once in this response. You cannot retrieve the secret after this point. If you lose the secret, you must rotate to a new one.
The expires_at value shows when the credential expires. An administrator can configure the maximum credential lifetime. The default is 180 days. The valid range is 0 to 730 days, where 0 means the credential never expires.
Record the identifier (client ID) and client_secret values from the credential response.
Store the client credentials securely, such as in a secrets manager or encrypted vault.
Share the client ID and client secret with the integration owner who configures the external system.
Results
Confirm the service account is displayed in the project's service account list with active status: