Skip to main content

AccountRequestConfigService

Use these APIs to get and update who may submit a standalone human account request. 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().

MethodHTTP requestDescription
get-account-request-config-v2GET /accounts/v2/account-request-configGet account request config
update-account-request-config-v2PATCH /accounts/v2/account-request-configUpdate account request config

get-account-request-config-v2​

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.

Get account request config Get the tenant configuration that controls who may submit a standalone human account request. The first read for a tenant creates the configuration with every option false.

API Spec

Parameters​

The service takes one object that holds every parameter. Its type is GetAccountRequestConfigV2RequestParams.

NameTypeDescriptionNotes
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type​

Observable<AccountRequestConfig>

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json

Example​

import { Component, inject } from '@angular/core';
import { AccountRequestConfigService } from '@sailpoint/angular-sdk/account_request_config';

@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(AccountRequestConfigService);

getAccountRequestConfigV2(): void {
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.getAccountRequestConfigV2({ }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}

[Back to top]

update-account-request-config-v2​

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.

Update account request config Update who may submit a standalone human account request. The body is a JSON Patch document. Each operation must replace one of /allowRequestForSelf, /requestOnBehalfOfConfig/allowRequestOnBehalfOfAnyoneByAnyone, or /requestOnBehalfOfConfig/allowRequestOnBehalfOfEmployeeByManager with a boolean. A request with any other path or operation returns 400 and leaves the stored configuration unchanged.

API Spec

Parameters​

The service takes one object that holds every parameter. Its type is UpdateAccountRequestConfigV2RequestParams.

NameTypeDescriptionNotes
jsonPatchOperationArray<JsonPatchOperation>JSON Patch operations, as defined by RFC 6902.
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type​

Observable<AccountRequestConfig>

HTTP request headers​

  • Content-Type: application/json-patch+json
  • Accept: application/json

Example​

import { Component, inject } from '@angular/core';
import { AccountRequestConfigService } from '@sailpoint/angular-sdk/account_request_config';
import { JsonPatchOperation } from '@sailpoint/angular-sdk/account_request_config';

@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(AccountRequestConfigService);

updateAccountRequestConfigV2(): void {
const jsonPatchOperation: Array<JsonPatchOperation> = ; // JSON Patch operations, as defined by [RFC 6902](https://tools.ietf.org/html/rfc6902).
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.updateAccountRequestConfigV2({ jsonPatchOperation: jsonPatchOperation }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}

[Back to top]