Create Service Account
cloud_iam.create_service_account
ActionGoogle Cloudconnection required
Calls IAM POST projects/{p}/serviceAccounts.
Create a service account in a GCP project.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Cloud IAM
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
project_id GCP project id (overrides connection). | string | No | — | — | — |
account_id Account id (6-30 chars, becomes the email prefix). | string | Yes | — | — | — |
display_name Name the new service account gets in Cloud Iam; not an id. | string | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
name | string | — |
email | string | — |
unique_id | string | — |
display_name | string | — |
{
"display_name": "",
"email": "",
"name": "",
"ok": false,
"unique_id": ""
}Related Google Cloud IAM nodes
See Create Service Account run in a workflow.
In a technical demo we add the Google Cloud IAM connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.