Service Users are headless accounts for machine-to-machine interaction (CI/CD, ETL, etc.). They authenticate via API Keys.
Base Endpoint: /api/v1/service-users
- Method:
POST - Body:
{ "name": "ci-bot", "role": "tenant-user", "expires_in_days": 90 } - Response: Returns the API Key (only once).
- Method:
POST - Path:
/api/v1/service-users/{id}/rotate
pangolin-admin create-service-user \
--name "ci-bot" \
--role "tenant-user" \
--expires-in-days 365Output:
API Key: pgl_AbCd...
(Save this key!)
pangolin-admin list-service-userspangolin-admin rotate-service-user-key --id <uuid>su = client.service_users.create(
name="airflow-bot",
role="tenant-user",
expires_in_days=30
)
print(f"ID: {su.id}")
print(f"Key: {su.api_key}") # Only available herenew_creds = client.service_users.rotate_key("uuid...")
print(f"New Key: {new_creds.api_key}")- Log in as a Tenant Admin.
- Navigate to Service Users (often a tab within Users or a separate sidebar item).
- Create: Click "Create Service User".
- Enter Name and Role.
- Set Expiration.
- COPY THE KEY: A modal will show the key. Copy it immediately.
- Rotate: Select a service user -> Rotate Key. A new key is generated and shown.