HumanAccountRequestsService
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.
Every method returns an Observable. All request paths are relative to the baseUrl you pass to provideSailPoint().
| Method | HTTP request | Description |
|---|---|---|
| create-human-account-request-v1 | POST /accounts/v1/account-requests/human-account-create | Submit human account create request |
| get-human-account-request-v1 | 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 human account create request
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
The service takes one object that holds every parameter. Its type is CreateHumanAccountRequestV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| humanAccountCreateRequest | HumanAccountCreateRequest | The identity, human account subtype, and optional form input for the account to create. | |
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
Return type
Observable<HumanAccountCreateResponse>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { HumanAccountRequestsService } from '@sailpoint/angular-sdk/human_account_requests';
import { HumanAccountCreateRequest } from '@sailpoint/angular-sdk/human_account_requests';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(HumanAccountRequestsService);
createHumanAccountRequestV1(): void {
const humanAccountCreateRequest: HumanAccountCreateRequest = ; // The identity, human account subtype, and optional form input for the account to create.
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.createHumanAccountRequestV1({ humanAccountCreateRequest: humanAccountCreateRequest }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
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 human account create request 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
The service takes one object that holds every parameter. Its type is GetHumanAccountRequestV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| accountRequestId | string | Id returned when the human account create request was submitted. | [default to undefined] |
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
Return type
Observable<HumanAccountCreateStatus>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { HumanAccountRequestsService } from '@sailpoint/angular-sdk/human_account_requests';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(HumanAccountRequestsService);
getHumanAccountRequestV1(): void {
const accountRequestId: string = ; // Id returned when the human account create request was submitted.
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.getHumanAccountRequestV1({ accountRequestId: accountRequestId }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}