HumanAccountRequests
Use these APIs to submit a standalone human account request and to read its status. These APIs are experimental and require the `X-SailPoint-Experimental` header.
All URIs are relative to https://sailpoint.api.identitynow.com
| Method | HTTP request | Description |
|---|---|---|
| New-HumanAccountRequestV1 | POST /accounts/v1/account-requests/human-account-create | Submit human account create request |
| Get-HumanAccountRequestV1 | GET /accounts/v1/account-requests/human-account-create/{accountRequestId} | Get human account create request |
create-human-account-request-v1
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.
Submit a request for a new account of a HUMAN account subtype, for the caller or for another identity. A successful request is accepted and starts the account-create workflow. Follow it with GET /accounts/v1/account-requests/human-account-create/{accountRequestId}.
The tenant account request configuration decides who may submit. A self-request requires allowRequestForSelf. A request for someone else requires allowRequestOnBehalfOfAnyoneByAnyone, or allowRequestOnBehalfOfEmployeeByManager when the caller is that identity's manager. The subtype must be a HUMAN account subtype whose account creation is enabled, and its source must support provisioning. While human account provisioning is disabled, this endpoint returns 404.
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| XSailPointExperimental | String | True (default to "true") | Use this header to enable this experimental API. | |
| Body | HumanAccountCreateRequest | HumanAccountCreateRequest | True | The identity, human account subtype, and optional form input for the account to create. |
Return type
Responses
| Code | Description | Data Type |
|---|---|---|
| 202 | The request was accepted. Use accountRequestId to read its status. | HumanAccountCreateResponse |
| 400 | Client Error - Returned if the request body is invalid. | ErrorResponseDto |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | CreateHumanAccountRequestV1401Response |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | ErrorResponseDto |
| 429 | Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again. | CreateHumanAccountRequestV1429Response |
| 500 | Internal Server Error - Returned if there is an unexpected error. | ErrorResponseDto |
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
$XSailPointExperimental = "true" # String | Use this header to enable this experimental API. (default to "true")
$HumanAccountCreateRequest = @"{
"formId" : "f5dd23fe-3414-42b7-bb1c-869400ad7a10",
"identityId" : "2c91808568c529c60168cca6f90c1313",
"userInput" : {
"department" : "Engineering",
"location" : "Austin"
},
"subtypeId" : "38453251-6be2-5f8f-df93-5ce19e295838"
}"@
# Submit human account create request
try {
$Result = ConvertFrom-JsonToHumanAccountCreateRequest -Json $HumanAccountCreateRequest
New-HumanAccountRequestV1 -XSailPointExperimental $XSailPointExperimental -HumanAccountCreateRequest $Result
# Below is a request that includes all optional parameters
# New-HumanAccountRequestV1 -XSailPointExperimental $XSailPointExperimental -HumanAccountCreateRequest $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling New-HumanAccountRequestV1"
Write-Host $_.ErrorDetails
}
get-human-account-request-v1
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.
Get the status of a human account create request. The caller must be the requester, the identity the account is for, or an admin. An unknown id, or the id of another kind of request, is not found. While human account provisioning is disabled, this endpoint returns 404.
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| XSailPointExperimental | String | True (default to "true") | Use this header to enable this experimental API. | |
| Path | AccountRequestId | String | True | Id returned when the human account create request was submitted. |
Return type
Responses
| Code | Description | Data Type |
|---|---|---|
| 200 | Status of the human account create request. | HumanAccountCreateStatus |
| 400 | Client Error - Returned if the request body is invalid. | ErrorResponseDto |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | CreateHumanAccountRequestV1401Response |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | ErrorResponseDto |
| 429 | Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again. | CreateHumanAccountRequestV1429Response |
| 500 | Internal Server Error - Returned if there is an unexpected error. | ErrorResponseDto |
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
$XSailPointExperimental = "true" # String | Use this header to enable this experimental API. (default to "true")
$AccountRequestId = "2d81808474683da6017468693c260196" # String | Id returned when the human account create request was submitted.
# Get human account create request
try {
Get-HumanAccountRequestV1 -XSailPointExperimental $XSailPointExperimental -AccountRequestId $AccountRequestId
# Below is a request that includes all optional parameters
# Get-HumanAccountRequestV1 -XSailPointExperimental $XSailPointExperimental -AccountRequestId $AccountRequestId
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-HumanAccountRequestV1"
Write-Host $_.ErrorDetails
}