Docs
Live demo
POST/api/v2/access-profiles/{id}/adopt
access:manageAPI token

Enqueue one-click adoption for an access-profile recommendation.

Send reviewed_account_key_hash and reviewed_canonical_signature from the reviewed profile: adoption refuses if the pattern changed since.

Parameters

Path1 required of 1
idstringpathrequired

Access profile ID (UUID)

Request body application/json · AdoptAccessProfileRequest

Required2 of 7 fields
reviewed_canonical_signaturestringrequired

Canonical grant signature the operator reviewed for high-risk or skipped-account adoption.

reviewed_account_key_hashstringrequired

Account-set signature the operator reviewed. Rejects stale dialogs after analysis changes the account set.

Optional5 fields
grant_review_confirmedboolean

Required when adopting a high-risk profile. Must be bound to the reviewed canonical signature.

skipped_accounts_confirmedboolean

Required when the recommendation includes skipped accounts that will remain unmanaged.

template_namestring

Name for the access template created by the adoption job.

template_descriptionstring

Optional description for the access template created by the adoption job.

3 fields
account_keyTargetAccountKeyRequestrequired
8 fields
enginestringrequired
postgresmysqlkubernetesclickhousemongodb
role_namestring
user_namestring
user_hoststring
subject_kindstring
ServiceAccountUserGroup
namestring
namespacestring
auth_sourcestring

Authentication database of a MongoDB user

identity_idstring

Legacy existing identity mapping. Prefer identity.

Discriminated by mode. When mode=existing, only identity_id is read. When mode=create_static, external_id and display_name are required and the server creates a service-kind identity carrying adoption metadata before linking the target account.

5 fields
modestringrequired
existingcreate_static
identity_idstring

Existing identity to map to. Required when mode=existing.

external_idstring

External id for the new static identity. Required when mode=create_static.

display_namestring

Human-readable label for the new static identity. Required when mode=create_static.

descriptionstring

Optional description for the new static identity.

Responses

202

Access-profile adoption job enqueued

AdoptAccessProfileResponse · 3 fields
job_idstring
profile_idstring
messagestring
409

Conflict

Common errors: 400 401 403 404 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close