Skip to main content

Create machine account (v2)

POST 

/machine-accounts/v2/machine-account-create

experimental

This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to true to use this endpoint.

Submits a machine account creation request. New integrations should use this operation. This operation accepts the same request and runs the same creation process as Submit Machine Account Creation Request. That operation stays on the account-requests API for integrations that already call it. When version 1 cannot create the account because the subtype is not tied to a single source, the error directs the caller here. This method validates the input data, processes the machine account creation request, and returns an asynchronous result containing a tracking ID.

Compared with v1, this version:

  • Accepts a sourceId so you can choose the source to create the account on. sourceId is required while tiered subtype configuration is enabled, and the subtype must be in that source's effective set. When that flag is off, sourceId is ignored and the source is the subtype's own source.
  • Accepts entitlements (comment, start date, and remove date) while per-entitlement request details are enabled. entitlementIds is honored while that flag is off. A non-empty list of the other kind returns 400.
  • Supports subtypes that are not tied to a single source while tiered subtype configuration is enabled. Version 1 rejects those subtypes.

There is no v2 status endpoint. Use the returned accountRequestId with Get Machine Account Creation Request to track the request.

This API returns 403 when machine identity creation is not included in the tenant's plan. When machine account creation is not enabled for the tenant, this API returns 404.

This API requires the sp:scopes:default scope.

NOTE: You can only request a machine account on a subtype for which you have a create machine account entitlement provisioned. Otherwise, this API returns 403.

Request​

Responses​

Machine account creation request result.