Organizations
Assume a service account in a target organization
This endpoint allows meta service accounts to obtain temporary session tokens for accessing a target organization as a specific service account. The session automatically expires after the specified duration.
Security
- Only meta service accounts can call this endpoint
- The service account must exist in both _meta and target organization
- The service account must have the appropriate role in the target organization
- Maximum session duration is capped at 24 hours
Example
curl -X POST http://localhost:5080/api/_meta/assume_service_account \
-H "Authorization: Bearer <meta_sa_token>" \
-H "Content-Type: application/json" \
-d '{
"org_id": "customer1",
"service_account": "tenant_admin_sa",
"duration_seconds": 3600
}'
post/api/{org_id}/organizations/assume_service_account
Request
- Base URLhttps://api.openobserve.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
org_idstring required
Organization name (must be _meta)
Request body
Response
Session created successfully
Changes
No recorded changes to this operation across all 1 revision of this API.