RolesService
Use this API to implement and customize role functionality. With this functionality in place, administrators can create roles and configure them for use throughout SailPoint Identity Security. SailPoint Identity Security can use established criteria to automatically assign the roles to qualified users. This enables users to get all the access they need quickly and securely and administrators to spend their time on other tasks.
Entitlements represent the most granular level of access in SailPoint Identity Security. Access profiles represent the next level and often group entitlements. Roles represent the broadest level of access and often group access profiles.
For example, an Active Directory source in SailPoint Identity Security can have multiple entitlements: the first, 'Employees,' may represent the access all employees have at the organization, and a second, 'Developers,' may represent the access all developers have at the organization.
An administrator can then create a broader set of access in the form of an access profile, 'AD Developers' grouping the 'Employees' entitlement with the 'Developers' entitlement.
An administrator can then create an even broader set of access in the form of a role grouping the 'AD Developers' access profile with another profile, 'GitHub Developers,' grouping entitlements for the GitHub source.
When users only need Active Directory employee access, they can request access to the 'Employees' entitlement.
When users need both Active Directory employee and developer access, they can request access to the 'AD Developers' access profile.
When users need both the 'AD Developers' access profile and the 'GitHub Developers' access profile, they can request access to the role grouping both.
Roles often represent positions within organizations. For example, an organization's accountant can access all the tools the organization's accountants need with the 'Accountant' role. If the accountant switches to engineering, a qualified member of the organization can quickly revoke the accountant's 'Accountant' access and grant access to the 'Engineer' role instead, granting access to all the tools the organization's engineers need.
In SailPoint Identity Security, adminstrators can use the Access drop-down menu and select Roles to view, configure, and delete existing roles, as well as create new ones. Administrators can enable and disable the role, and they can also make the following configurations:
-
Manage Access: Manage the role's access by adding or removing access profiles.
-
Define Assignment: Define the criteria SailPoint Identity Security uses to assign the role to identities. Use the first option, 'Standard Criteria,' to provide specific criteria for assignment like specific account attributes, entitlements, or identity attributes. Use the second, 'Identity List,' to specify the identities for assignment.
-
Access Requests: Configure roles to be requestable and establish an approval process for any requests that the role be granted or revoked. Do not configure a role to be requestable without establishing a secure access request approval process for that role first.
Refer to Working with Roles for more information about roles.
Every method returns an Observable. All request paths are relative to the baseUrl you pass to provideSailPoint().
| Method | HTTP request | Description |
|---|---|---|
| create-role-v1 | POST /roles/v1 | Create a role |
| delete-bulk-roles-v1 | POST /roles/v1/bulk-delete | Delete role(s) |
| delete-metadata-from-role-by-key-and-value-v1 | DELETE /roles/v1/{id}/access-model-metadata/{attributeKey}/values/{attributeValue} | Remove a metadata from role. |
| delete-role-v1 | DELETE /roles/v1/{id} | Delete a role |
| get-bulk-update-status-by-id-v1 | GET /roles/v1/access-model-metadata/bulk-update/id | Get bulk-update status by id |
| get-bulk-update-status-v1 | GET /roles/v1/access-model-metadata/bulk-update | Get bulk-update statuses |
| get-role-assigned-identities-v1 | GET /roles/v1/{id}/assigned-identities | List identities assigned a role |
| get-role-entitlements-v1 | GET /roles/v1/{id}/entitlements | List role's entitlements |
| get-role-entitlements-v2 | GET /roles/v2/{id}/entitlements | List role's entitlements |
| get-role-v1 | GET /roles/v1/{id} | Get a role |
| get-role-v2 | GET /roles/v2/{id} | Get a role |
| list-roles-v1 | GET /roles/v1 | List roles |
| list-roles-v2 | GET /roles/v2 | List roles |
| patch-role-v1 | PATCH /roles/v1/{id} | Patch a specified role |
| search-roles-by-filter-v1 | POST /roles/v1/filter | Filter roles by metadata |
| search-roles-by-filter-v2 | POST /roles/v2/filter | Filter roles by metadata |
| update-attribute-key-and-value-to-role-v1 | POST /roles/v1/{id}/access-model-metadata/{attributeKey}/values/{attributeValue} | Add a metadata to role. |
| update-roles-metadata-by-filter-v1 | POST /roles/v1/access-model-metadata/bulk-update/filter | Bulk-update roles' metadata by filters |
| update-roles-metadata-by-ids-v1 | POST /roles/v1/access-model-metadata/bulk-update/ids | Bulk-update roles' metadata by id |
| update-roles-metadata-by-query-v1 | POST /roles/v1/access-model-metadata/bulk-update/query | Bulk-update roles' metadata by query |
create-role-v1
Create a role This API creates a role.
You must have a token with API, ORG_ADMIN, ROLE_ADMIN, or ROLE_SUBADMIN authority to call this API.
In addition, a ROLE_SUBADMIN may not create a role including an access profile if that access profile is associated with a source the ROLE_SUBADMIN is not associated with themselves.
The maximum supported length for the description field is 2000 characters. Longer descriptions will be preserved for existing roles. However, any new roles as well as any updates to existing descriptions will be limited to 2000 characters.
Parameters
The service takes one object that holds every parameter. Its type is CreateRoleV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| role | Role |
Return type
Observable<Role>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
import { Role } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
createRoleV1(): void {
const role: Role = ; //
this.api.createRoleV1({ role: role }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
delete-bulk-roles-v1
Delete role(s) This endpoint initiates a bulk deletion of one or more roles. When the request is successful, the endpoint returns the bulk delete's task result ID. To follow the task, you can use Get Task Status by ID, which will return the task result's status and information. This endpoint can only bulk delete up to a limit of 50 roles per request. A user with ROLE_SUBADMIN authority can only call this endpoint if all roles included in the request are associated with sources with management workgroups the ROLE_SUBADMIN is a member of.
Parameters
The service takes one object that holds every parameter. Its type is DeleteBulkRolesV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| roleBulkDeleteRequest | RoleBulkDeleteRequest |
Return type
Observable<TaskResultDto>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
import { RoleBulkDeleteRequest } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
deleteBulkRolesV1(): void {
const roleBulkDeleteRequest: RoleBulkDeleteRequest = ; //
this.api.deleteBulkRolesV1({ roleBulkDeleteRequest: roleBulkDeleteRequest }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
delete-metadata-from-role-by-key-and-value-v1
Remove a metadata from role. This API initialize a request to remove a single Access Model Metadata from a role by attribute key and value. A token with ORG_ADMIN, ROLE_ADMIN ROLE_SUBADMIN authority is required to call this API.
Parameters
The service takes one object that holds every parameter. Its type is DeleteMetadataFromRoleByKeyAndValueV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | The role's id. | [default to undefined] |
| attributeKey | string | Technical name of the Attribute. | [default to undefined] |
| attributeValue | string | Technical name of the Attribute Value. | [default to undefined] |
Return type
Observable<void> (empty response body)
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
deleteMetadataFromRoleByKeyAndValueV1(): void {
const id: string = ; // The role\'s id.
const attributeKey: string = ; // Technical name of the Attribute.
const attributeValue: string = ; // Technical name of the Attribute Value.
this.api.deleteMetadataFromRoleByKeyAndValueV1({ id: id, attributeKey: attributeKey, attributeValue: attributeValue }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
delete-role-v1
Delete a role This API deletes a Role by its ID.
A token with API, ORG_ADMIN, ROLE_ADMIN, or ROLE_SUBADMIN authority is required to call this API. In addition, a token with ROLE_SUBADMIN authority may only call this API if all Access Profiles included in the Role are associated to Sources with management workgroups of which the ROLE_SUBADMIN is a member.
Parameters
The service takes one object that holds every parameter. Its type is DeleteRoleV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ID of the Role | [default to undefined] |
Return type
Observable<void> (empty response body)
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
deleteRoleV1(): void {
const id: string = ; // ID of the Role
this.api.deleteRoleV1({ id: id }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
get-bulk-update-status-by-id-v1
Get bulk-update status by id
This API initial a request for one bulk update's status by bulk update Id returns the status of the bulk update process. A token with ORG_ADMIN, ROLE_ADMIN ROLE_SUBADMIN authority is required to call this API.
Parameters
The service takes one object that holds every parameter. Its type is GetBulkUpdateStatusByIdV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | The Id of the bulk update task. | [default to undefined] |
Return type
Observable<RoleBulkUpdateResponse>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
getBulkUpdateStatusByIdV1(): void {
const id: string = ; // The Id of the bulk update task.
this.api.getBulkUpdateStatusByIdV1({ id: id }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
get-bulk-update-status-v1
Get bulk-update statuses This API returns a list of all unfinished bulk update process status of the tenant.
Parameters
The service takes one object that holds every parameter. Its type is GetBulkUpdateStatusV1RequestParams.
This endpoint does not need any parameter.
Return type
Observable<Array<RoleGetAllBulkUpdateResponse>>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
getBulkUpdateStatusV1(): void {
this.api.getBulkUpdateStatusV1({ }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
get-role-assigned-identities-v1
List identities assigned a role
Parameters
The service takes one object that holds every parameter. Its type is GetRoleAssignedIdentitiesV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ID of the Role for which the assigned Identities are to be listed | [default to undefined] |
| limit | number | Max number of results to return. See API Standard Collection Parameters for more information. | [optional] [default to 250] |
| offset | number | Offset into the full result set. Usually specified with limit to paginate through the results. See API Standard Collection Parameters for more information. | [optional] [default to 0] |
| count | boolean | If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See API Standard Collection Parameters for more information. | [optional] [default to false] |
| filters | string | Filter results using the standard syntax described in API Standard Collection Parameters Filtering is supported for the following fields and operators: id: eq, in aliasName: eq, sw email: eq, sw name: eq, sw, co | [optional] [default to undefined] |
| sorters | string | Sort results using the standard syntax described in API Standard Collection Parameters Sorting is supported for the following fields: id, name, aliasName, email | [optional] [default to undefined] |
Return type
Observable<Array<RoleIdentity>>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
getRoleAssignedIdentitiesV1(): void {
const id: string = ; // ID of the Role for which the assigned Identities are to be listed
const limit: number = ; // Max number of results to return. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const offset: number = ; // Offset into the full result set. Usually specified with *limit* to paginate through the results. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const count: boolean = ; // If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const filters: string = ; // Filter results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional)
const sorters: string = ; // Sort results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional)
this.api.getRoleAssignedIdentitiesV1({ id: id }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
get-role-entitlements-v1
List role's entitlements Get a list of entitlements associated with a specified role.
Parameters
The service takes one object that holds every parameter. Its type is GetRoleEntitlementsV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Containing role's ID. | [default to undefined] |
| limit | number | Note that for this API the maximum value for limit is 50. See API Standard Collection Parameters for more information. | [optional] [default to 50] |
| offset | number | Offset into the full result set. Usually specified with limit to paginate through the results. See API Standard Collection Parameters for more information. | [optional] [default to 0] |
| count | boolean | If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See API Standard Collection Parameters for more information. | [optional] [default to false] |
| filters | string | Filter results using the standard syntax described in API Standard Collection Parameters Filtering is supported for the following fields and operators: id: eq, in name: eq, sw attribute: eq, sw value: eq, sw created: gt, lt, ge, le modified: gt, lt, ge, le owner.id: eq, in source.id: eq, in | [optional] [default to undefined] |
| sorters | string | Sort results using the standard syntax described in API Standard Collection Parameters Sorting is supported for the following fields: name, attribute, value, created, modified | [optional] [default to undefined] |
Return type
Observable<Array<Entitlement>>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
getRoleEntitlementsV1(): void {
const id: string = ; // Containing role\'s ID.
const limit: number = ; // Note that for this API the maximum value for limit is 50. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const offset: number = ; // Offset into the full result set. Usually specified with *limit* to paginate through the results. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const count: boolean = ; // If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const filters: string = ; // Filter results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional)
const sorters: string = ; // Sort results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional)
this.api.getRoleEntitlementsV1({ id: id }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
get-role-entitlements-v2
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.
List role's entitlements
Get a list of entitlements assigned directly to a specified Role. Each entitlement includes its privilege level in privilegeLevel, with the direct, inherited, and effective levels.
Use either offset pagination (offset and limit) or cursor pagination (cursor and limit). When more results are available, the x-next-cursor response header contains the cursor for the next page. You can't use cursor together with an offset greater than 0, and offset plus limit can't be greater than 10,000.
Parameters
The service takes one object that holds every parameter. Its type is GetRoleEntitlementsV2RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Containing role's ID. | [default to undefined] |
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
| limit | number | Max number of results to return. See API Standard Collection Parameters for more information. | [optional] [default to 50] |
| offset | number | Offset into the full result set. Usually specified with limit to paginate through the results. Must be 0 or omitted when cursor is specified. See API Standard Collection Parameters for more information. | [optional] [default to 0] |
| count | boolean | If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See API Standard Collection Parameters for more information. | [optional] [default to false] |
| cursor | string | Opaque cursor returned in the `x-next-cursor` response header of the previous page. Pass it with the same `sorters` to get the next page of results. Can't be used with an offset greater than 0. | [optional] [default to ''] |
| filters | string | Filter results using the standard syntax described in API Standard Collection Parameters Filtering is supported for the following fields and operators: id: eq, in name: eq, in, sw, co attribute: eq, sw, co value: eq, sw, co created: gt, lt, ge, le modified: gt, lt, ge, le privilegeLevel.effective: eq, in | [optional] [default to ''] |
| sorters | string | Sort results using the standard syntax described in API Standard Collection Parameters Sorting is supported for the following fields: id, name, attribute, value, created, modified, privilegeLevel.effective The default sort is created. id is always added as the final sort field so that cursor pagination is stable. | [optional] [default to 'created'] |
| forSegmentIds | string | If present and not empty, filters entitlements to those assigned to the segment(s) with the specified IDs. Can't be used with segmented-for-identity. | [optional] [default to ''] |
| segmentedForIdentity | string | If present, filters entitlements to those in the segments visible to the specified identity. The value must be the calling identity's ID or the special value me. Can't be used with for-segment-ids. | [optional] [default to ''] |
| includeUnsegmented | boolean | Whether the response list should contain unsegmented entitlements. If for-segment-ids is absent or empty, specifying include-unsegmented as false results in an error. | [optional] [default to true] |
Return type
Observable<Array<EntitlementV2>>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
getRoleEntitlementsV2(): void {
const id: string = ; // Containing role\'s ID.
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
const limit: number = ; // Max number of results to return. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const offset: number = ; // Offset into the full result set. Usually specified with *limit* to paginate through the results. Must be 0 or omitted when *cursor* is specified. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const count: boolean = ; // If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const cursor: string = ; // Opaque cursor returned in the `x-next-cursor` response header of the previous page. Pass it with the same `sorters` to get the next page of results. Can\'t be used with an *offset* greater than 0. (optional)
const filters: string = ; // Filter results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw, co* **attribute**: *eq, sw, co* **value**: *eq, sw, co* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **privilegeLevel.effective**: *eq, in* (optional)
const sorters: string = ; // Sort results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, attribute, value, created, modified, privilegeLevel.effective** The default sort is **created**. **id** is always added as the final sort field so that cursor pagination is stable. (optional)
const forSegmentIds: string = ; // If present and not empty, filters entitlements to those assigned to the segment(s) with the specified IDs. Can\'t be used with *segmented-for-identity*. (optional)
const segmentedForIdentity: string = ; // If present, filters entitlements to those in the segments visible to the specified identity. The value must be the calling identity\'s ID or the special value **me**. Can\'t be used with *for-segment-ids*. (optional)
const includeUnsegmented: boolean = ; // Whether the response list should contain unsegmented entitlements. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional)
this.api.getRoleEntitlementsV2({ id: id }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
get-role-v1
Get a role This API returns a Role by its ID. A token with API, ORG_ADMIN, ROLE_ADMIN, or ROLE_SUBADMIN authority is required to call this API. In addition, a token with ROLE_SUBADMIN authority may only call this API if all Access Profiles included in the Role are associated to Sources with management workgroups of which the ROLE_SUBADMIN is a member.
Parameters
The service takes one object that holds every parameter. Its type is GetRoleV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ID of the Role | [default to undefined] |
Return type
Observable<Role>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
getRoleV1(): void {
const id: string = ; // ID of the Role
this.api.getRoleV1({ id: id }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
get-role-v2
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 a role
This API returns a Role by its ID. The response includes the Role's effective privilege level in privilegeLevel.effective, which is the highest effective privilege level among the entitlements assigned directly to the Role and the entitlements included in the Role's access profiles.
A token with API, ORG_ADMIN, ROLE_ADMIN, or ROLE_SUBADMIN authority is required to call this API. In addition, a token with ROLE_SUBADMIN authority may only call this API if all Access Profiles included in the Role are associated to Sources with management workgroups of which the ROLE_SUBADMIN is a member.
Parameters
The service takes one object that holds every parameter. Its type is GetRoleV2RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ID of the Role | [default to undefined] |
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
Return type
Observable<RoleV2>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
getRoleV2(): void {
const id: string = ; // ID of the Role
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.getRoleV2({ id: id }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
list-roles-v1
List roles This API returns a list of Roles.
A token with API, ORG_ADMIN, ROLE_ADMIN, or ROLE_SUBADMIN authority is required to call this API.
Parameters
The service takes one object that holds every parameter. Its type is ListRolesV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| forSubadmin | string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value me, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the for-subadmin parameter is specified for an Identity that is not a subadmin. | [optional] [default to undefined] |
| limit | number | Note that for this API the maximum value for limit is 50. See API Standard Collection Parameters for more information. | [optional] [default to 50] |
| offset | number | Offset into the full result set. Usually specified with limit to paginate through the results. See API Standard Collection Parameters for more information. | [optional] [default to 0] |
| count | boolean | If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See API Standard Collection Parameters for more information. | [optional] [default to false] |
| filters | string | Filter results using the standard syntax described in API Standard Collection Parameters Filtering is supported for the following fields and operators: id: eq, in name: eq, sw created: gt, ge, le modified: lt, ge, le owner.id: eq, in requestable: eq dimensional: eq | [optional] [default to undefined] |
| sorters | string | Sort results using the standard syntax described in API Standard Collection Parameters Sorting is supported for the following fields: name, created, modified | [optional] [default to undefined] |
| forSegmentIds | string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. | [optional] [default to undefined] |
| includeUnsegmented | boolean | Whether or not the response list should contain unsegmented Roles. If for-segment-ids is absent or empty, specifying include-unsegmented as false results in an error. | [optional] [default to true] |
Return type
Observable<Array<Role>>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
listRolesV1(): void {
const forSubadmin: string = ; // If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity\'s ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional)
const limit: number = ; // Note that for this API the maximum value for limit is 50. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const offset: number = ; // Offset into the full result set. Usually specified with *limit* to paginate through the results. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const count: boolean = ; // If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const filters: string = ; // Filter results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* (optional)
const sorters: string = ; // Sort results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional)
const forSegmentIds: string = ; // If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional)
const includeUnsegmented: boolean = ; // Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional)
this.api.listRolesV1({ }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
list-roles-v2
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.
List roles
This API returns a list of Roles. Each Role includes its effective privilege level in privilegeLevel.effective, which is the highest effective privilege level among the entitlements assigned directly to the Role and the entitlements included in the Role's access profiles.
Use either offset pagination (offset and limit) or cursor pagination (cursor and limit). When more results are available, the x-next-cursor response header contains the cursor for the next page. Send that value in the cursor query parameter, with the same sorters, to get the next page. You can't use cursor together with an offset greater than 0, and offset plus limit can't be greater than 10,000. Use cursor pagination to page beyond 10,000 results.
A token with API, ORG_ADMIN, ROLE_ADMIN, or ROLE_SUBADMIN authority is required to call this API.
Parameters
The service takes one object that holds every parameter. Its type is ListRolesV2RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
| forSubadmin | string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value me, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the for-subadmin parameter is specified for an Identity that is not a subadmin. | [optional] [default to ''] |
| limit | number | Max number of results to return. See API Standard Collection Parameters for more information. | [optional] [default to 50] |
| offset | number | Offset into the full result set. Usually specified with limit to paginate through the results. Must be 0 or omitted when cursor is specified. See API Standard Collection Parameters for more information. | [optional] [default to 0] |
| count | boolean | If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See API Standard Collection Parameters for more information. | [optional] [default to false] |
| cursor | string | Opaque cursor returned in the `x-next-cursor` response header of the previous page. Pass it with the same `sorters` to get the next page of results. Can't be used with an offset greater than 0. | [optional] [default to ''] |
| filters | string | Filter results using the standard syntax described in API Standard Collection Parameters Filtering is supported for the following fields and operators: id: eq, in name: eq, in, sw, co created: gt, lt, ge, le modified: gt, lt, ge, le type: eq, in owner.id: eq, in additionalOwners.id: eq, in requestable: eq dimensional: eq source.id: eq, in entitlement.id: eq, in entitlement.name: eq, sw, co accessProfile.id: eq, in accessProfile.name: eq, sw, co privilegeLevel.effective: eq, in Supported composite operators are and, or | [optional] [default to ''] |
| sorters | string | Sort results using the standard syntax described in API Standard Collection Parameters Sorting is supported for the following fields: id, name, created, modified, privilegeLevel.effective The default sort is name. id is always added as the final sort field so that cursor pagination is stable. | [optional] [default to 'name'] |
| forSegmentIds | string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. | [optional] [default to ''] |
| includeUnsegmented | boolean | Whether or not the response list should contain unsegmented Roles. If for-segment-ids is absent or empty, specifying include-unsegmented as false results in an error. | [optional] [default to true] |
Return type
Observable<Array<RoleV2>>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
listRolesV2(): void {
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
const forSubadmin: string = ; // If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity\'s ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional)
const limit: number = ; // Max number of results to return. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const offset: number = ; // Offset into the full result set. Usually specified with *limit* to paginate through the results. Must be 0 or omitted when *cursor* is specified. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const count: boolean = ; // If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const cursor: string = ; // Opaque cursor returned in the `x-next-cursor` response header of the previous page. Pass it with the same `sorters` to get the next page of results. Can\'t be used with an *offset* greater than 0. (optional)
const filters: string = ; // Filter results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw, co* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **type**: *eq, in* **owner.id**: *eq, in* **additionalOwners.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* **source.id**: *eq, in* **entitlement.id**: *eq, in* **entitlement.name**: *eq, sw, co* **accessProfile.id**: *eq, in* **accessProfile.name**: *eq, sw, co* **privilegeLevel.effective**: *eq, in* Supported composite operators are *and, or* (optional)
const sorters: string = ; // Sort results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, privilegeLevel.effective** The default sort is **name**. **id** is always added as the final sort field so that cursor pagination is stable. (optional)
const forSegmentIds: string = ; // If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional)
const includeUnsegmented: boolean = ; // Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional)
this.api.listRolesV2({ }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
patch-role-v1
Patch a specified role This API updates an existing role using JSON Patch syntax.
The following fields are patchable:
- name
- description
- enabled
- owner
- additionalOwners
- accessProfiles
- entitlements
- membership
- requestable
- accessRequestConfig
- revokeRequestConfig
- segments
- accessModelMetadata
A token with API, ORG_ADMIN, ROLE_ADMIN, or ROLE_SUBADMIN authority is required to call this API. In addition, a token with ROLE_SUBADMIN authority may only call this API if all access profiles included in the role are associated to Sources with management workgroups of which the ROLE_SUBADMIN is a member.
The maximum supported length for the description field is 2000 characters. Longer descriptions will be preserved for existing roles, however, any new roles as well as any updates to existing descriptions will be limited to 2000 characters.
When you use this API to modify a role's membership identities, you can only modify up to a limit of 500 membership identities at a time.
Parameters
The service takes one object that holds every parameter. Its type is PatchRoleV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ID of the Role to patch | [default to undefined] |
| jsonPatchOperation | Array<JsonPatchOperation> |
Return type
Observable<Role>
HTTP request headers
- Content-Type: application/json-patch+json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
import { JsonPatchOperation } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
patchRoleV1(): void {
const id: string = ; // ID of the Role to patch
const jsonPatchOperation: Array<JsonPatchOperation> = ; //
this.api.patchRoleV1({ id: id, jsonPatchOperation: jsonPatchOperation }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
search-roles-by-filter-v1
Filter roles by metadata This API returns a list of Role that filter by metadata and filter, it support filter by both path parameter and attribute key and values. A token with API, ORG_ADMIN, ROLE_ADMIN, ROLE_SUBADMIN, HELPDESK, CERT_ADMIN, REPORT_ADMIN or SOURCE_ADMIN authority is required to call this API.
Parameters
The service takes one object that holds every parameter. Its type is SearchRolesByFilterV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| forSubadmin | string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value me, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the for-subadmin parameter is specified for an Identity that is not a subadmin. | [optional] [default to undefined] |
| limit | number | Max number of results to return See API Standard Collection Parameters for more information. | [optional] [default to 50] |
| offset | number | Offset into the full result set. Usually specified with limit to paginate through the results. See API Standard Collection Parameters for more information. | [optional] [default to 0] |
| count | boolean | Boolean indicating whether a total count is returned, factoring in any filter parameters, in the X-Total-Count response header. The value is the total size of the collection that would be returned if limit and offset were ignored. See API Standard Collection Parameters for more information. | [optional] [default to false] |
| sorters | string | Sort results using the standard syntax described in API Standard Collection Parameters Sorting is supported for the following fields: name, created, modified | [optional] [default to undefined] |
| forSegmentIds | string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. | [optional] [default to undefined] |
| includeUnsegmented | boolean | Whether or not the response list should contain unsegmented Roles. If for-segment-ids is absent or empty, specifying include-unsegmented as false results in an error. | [optional] [default to true] |
| roleListFilterDTO | RoleListFilterDTO | [optional] |
Return type
Observable<Array<Role>>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
import { RoleListFilterDTO } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
searchRolesByFilterV1(): void {
const forSubadmin: string = ; // If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity\'s ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional)
const limit: number = ; // Max number of results to return See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const offset: number = ; // Offset into the full result set. Usually specified with *limit* to paginate through the results. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const count: boolean = ; // Boolean indicating whether a total count is returned, factoring in any filter parameters, in the X-Total-Count response header. The value is the total size of the collection that would be returned if limit and offset were ignored. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const sorters: string = ; // Sort results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional)
const forSegmentIds: string = ; // If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional)
const includeUnsegmented: boolean = ; // Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional)
const roleListFilterDTO: RoleListFilterDTO = ; // (optional)
this.api.searchRolesByFilterV1({ }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
search-roles-by-filter-v2
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.
Filter roles by metadata
This API returns a list of Roles filtered by Access Model Metadata and by filter expression. Filtering is supported by filter expression, by metadata attribute key and values, or by both together. Each Role includes its effective privilege level in privilegeLevel.effective.
The filters expression in the request body supports the same fields and operators as the filters query parameter of List roles, including privilegeLevel.effective: eq, in.
Use either offset pagination (offset and limit) or cursor pagination (cursor and limit). When more results are available, the x-next-cursor response header contains the cursor for the next page. Send that value in the cursor query parameter, with the same request body and sorters, to get the next page. You can't use cursor together with an offset greater than 0, and offset plus limit can't be greater than 10,000.
Parameters
The service takes one object that holds every parameter. Its type is SearchRolesByFilterV2RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| rolelistfilterdtov2 | RolelistfilterdtoV2 | ||
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
| forSubadmin | string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value me, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the for-subadmin parameter is specified for an Identity that is not a subadmin. | [optional] [default to ''] |
| limit | number | Max number of results to return See API Standard Collection Parameters for more information. | [optional] [default to 50] |
| offset | number | Offset into the full result set. Usually specified with limit to paginate through the results. Must be 0 or omitted when cursor is specified. See API Standard Collection Parameters for more information. | [optional] [default to 0] |
| count | boolean | If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See API Standard Collection Parameters for more information. | [optional] [default to false] |
| cursor | string | Opaque cursor returned in the `x-next-cursor` response header of the previous page. Pass it with the same request body and `sorters` to get the next page of results. Can't be used with an offset greater than 0. | [optional] [default to ''] |
| sorters | string | Sort results using the standard syntax described in API Standard Collection Parameters Sorting is supported for the following fields: id, name, created, modified, privilegeLevel.effective The default sort is name. id is always added as the final sort field so that cursor pagination is stable. | [optional] [default to 'name'] |
| forSegmentIds | string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. | [optional] [default to ''] |
| includeUnsegmented | boolean | Whether or not the response list should contain unsegmented Roles. If for-segment-ids is absent or empty, specifying include-unsegmented as false results in an error. | [optional] [default to true] |
Return type
Observable<Array<RoleV2>>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
import { RolelistfilterdtoV2 } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
searchRolesByFilterV2(): void {
const rolelistfilterdtov2: RolelistfilterdtoV2 = ; //
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
const forSubadmin: string = ; // If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity\'s ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional)
const limit: number = ; // Max number of results to return See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const offset: number = ; // Offset into the full result set. Usually specified with *limit* to paginate through the results. Must be 0 or omitted when *cursor* is specified. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const count: boolean = ; // If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const cursor: string = ; // Opaque cursor returned in the `x-next-cursor` response header of the previous page. Pass it with the same request body and `sorters` to get the next page of results. Can\'t be used with an *offset* greater than 0. (optional)
const sorters: string = ; // Sort results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, privilegeLevel.effective** The default sort is **name**. **id** is always added as the final sort field so that cursor pagination is stable. (optional)
const forSegmentIds: string = ; // If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional)
const includeUnsegmented: boolean = ; // Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional)
this.api.searchRolesByFilterV2({ rolelistfilterdtov2: rolelistfilterdtov2 }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
update-attribute-key-and-value-to-role-v1
Add a metadata to role. This API initialize a request to add a single Access Model Metadata to a role by attribute key and attribute value. A token with ORG_ADMIN, ROLE_ADMIN ROLE_SUBADMIN authority is required to call this API. The maximum number of attributes in one role is 25. Custom metadata update, including ADD and REPLACE need suit licensed.
Parameters
The service takes one object that holds every parameter. Its type is UpdateAttributeKeyAndValueToRoleV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | The Id of a role | [default to undefined] |
| attributeKey | string | Technical name of the Attribute. | [default to undefined] |
| attributeValue | string | Technical name of the Attribute Value. | [default to undefined] |
Return type
Observable<Role>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
updateAttributeKeyAndValueToRoleV1(): void {
const id: string = ; // The Id of a role
const attributeKey: string = ; // Technical name of the Attribute.
const attributeValue: string = ; // Technical name of the Attribute Value.
this.api.updateAttributeKeyAndValueToRoleV1({ id: id, attributeKey: attributeKey, attributeValue: attributeValue }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
update-roles-metadata-by-filter-v1
Bulk-update roles' metadata by filters This API initiates a bulk update of metadata for one or more Roles by filter. A token with ORG_ADMIN, ROLE_ADMIN ROLE_SUBADMIN authority is required to call this API. The maximum metadata value count for a single role is 25. Custom metadata update, including add, replace need suit licensed.
Parameters
The service takes one object that holds every parameter. Its type is UpdateRolesMetadataByFilterV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| roleMetadataBulkUpdateByFilterRequest | RoleMetadataBulkUpdateByFilterRequest |
Return type
Observable<RoleBulkUpdateResponse>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
import { RoleMetadataBulkUpdateByFilterRequest } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
updateRolesMetadataByFilterV1(): void {
const roleMetadataBulkUpdateByFilterRequest: RoleMetadataBulkUpdateByFilterRequest = ; //
this.api.updateRolesMetadataByFilterV1({ roleMetadataBulkUpdateByFilterRequest: roleMetadataBulkUpdateByFilterRequest }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
update-roles-metadata-by-ids-v1
Bulk-update roles' metadata by id This API initiates a bulk update of metadata for one or more Roles by a list of Role Ids. A token with ORG_ADMIN, ROLE_ADMIN ROLE_SUBADMIN authority is required to call this API. The maximum role count in a single update request is 3000. The maximum metadata value count for a single role is 25. Custom metadata update, including add, replace need suit licensed.
Parameters
The service takes one object that holds every parameter. Its type is UpdateRolesMetadataByIdsV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| roleMetadataBulkUpdateByIdRequest | RoleMetadataBulkUpdateByIdRequest |
Return type
Observable<RoleBulkUpdateResponse>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
import { RoleMetadataBulkUpdateByIdRequest } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
updateRolesMetadataByIdsV1(): void {
const roleMetadataBulkUpdateByIdRequest: RoleMetadataBulkUpdateByIdRequest = ; //
this.api.updateRolesMetadataByIdsV1({ roleMetadataBulkUpdateByIdRequest: roleMetadataBulkUpdateByIdRequest }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
update-roles-metadata-by-query-v1
Bulk-update roles' metadata by query This API initiates a bulk update of metadata for one or more Roles by query. A token with ORG_ADMIN, ROLE_ADMIN ROLE_SUBADMIN authority is required to call this API. The maximum metadata value count for a single role is 25. Custom metadata update, including add, replace need suit licensed.
Parameters
The service takes one object that holds every parameter. Its type is UpdateRolesMetadataByQueryV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| roleMetadataBulkUpdateByQueryRequest | RoleMetadataBulkUpdateByQueryRequest |
Return type
Observable<RoleBulkUpdateResponse>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { RolesService } from '@sailpoint/angular-sdk/roles';
import { RoleMetadataBulkUpdateByQueryRequest } from '@sailpoint/angular-sdk/roles';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(RolesService);
updateRolesMetadataByQueryV1(): void {
const roleMetadataBulkUpdateByQueryRequest: RoleMetadataBulkUpdateByQueryRequest = ; //
this.api.updateRolesMetadataByQueryV1({ roleMetadataBulkUpdateByQueryRequest: roleMetadataBulkUpdateByQueryRequest }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}