Skip to main content

DataSegmentationApi

This service is responsible for creating segments that will determine how access is delegated to identities withing the organization.

All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
create-data-segment-v1POST /data-segments/v1Create segment
delete-data-segment-v1DELETE /data-segments/v1/{segmentId}Delete segment by id
get-data-segment-identity-membership-v1GET /data-segments/v1/membership/{identityId}Get segmentmembership by identity id
get-data-segment-v1GET /data-segments/v1/{segmentId}Get segment by id
get-data-segmentation-enabled-for-user-v1GET /data-segments/v1/user-enabled/{identityId}Is segmentation enabled by identity
list-data-segments-v1GET /data-segments/v1Get segments
patch-data-segment-v1PATCH /data-segments/v1/{segmentId}Update segment
publish-data-segment-v1POST /data-segments/v1/{segmentId}Publish segment by id

create-data-segment-v1

Create segment This API creates a segment.

Note: Segment definitions may take time to propagate to all identities.

API Spec

Parameters

NameTypeDescriptionNotes
dataSegmentDataSegment

Return type

DataSegment

HTTP request headers

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

Example

import { DataSegmentationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new DataSegmentationApi(configuration);
const dataSegment: DataSegment = ; //
const result = await apiInstance.createDataSegmentV1({ dataSegment: dataSegment });
console.log(result);

[Back to top]

delete-data-segment-v1

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.

Delete segment by id This API deletes the segment specified by the given ID.

API Spec

Parameters

NameTypeDescriptionNotes
segmentIdstringThe segment ID to delete.[default to undefined]
publishedbooleanThis determines which version of the segment to delete[optional] [default to false]
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

(empty response body)

HTTP request headers

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

Example

import { DataSegmentationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new DataSegmentationApi(configuration);
const segmentId: string = ef38f943-47e9-4562-b5bb-8424a56397d8; // The segment ID to delete.
const published: boolean = false; // This determines which version of the segment to delete (optional)
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.deleteDataSegmentV1({ segmentId: segmentId });
console.log(result);

[Back to top]

get-data-segment-identity-membership-v1

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 segmentmembership by identity id This API returns the segment membership specified by the given identity ID.

API Spec

Parameters

NameTypeDescriptionNotes
identityIdstringThe identity ID to retrieve the segments they are in.[default to undefined]
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

Array<Segmentmembership>

HTTP request headers

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

Example

import { DataSegmentationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new DataSegmentationApi(configuration);
const identityId: string = ef38f943-47e9-4562-b5bb-8424a56397d8; // The identity ID to retrieve the segments they are in.
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.getDataSegmentIdentityMembershipV1({ identityId: identityId });
console.log(result);

[Back to top]

get-data-segment-v1

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 segment by id This API returns the segment specified by the given ID.

API Spec

Parameters

NameTypeDescriptionNotes
segmentIdstringThe segment ID to retrieve.[default to undefined]
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

DataSegment

HTTP request headers

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

Example

import { DataSegmentationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new DataSegmentationApi(configuration);
const segmentId: string = ef38f943-47e9-4562-b5bb-8424a56397d8; // The segment ID to retrieve.
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.getDataSegmentV1({ segmentId: segmentId });
console.log(result);

[Back to top]

get-data-segmentation-enabled-for-user-v1

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.

Is segmentation enabled by identity This API returns whether or not segmentation is enabled for the identity.

API Spec

Parameters

NameTypeDescriptionNotes
identityIdstringThe identity ID to retrieve if segmentation is enabled for the identity.[default to undefined]
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

boolean

HTTP request headers

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

Example

import { DataSegmentationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new DataSegmentationApi(configuration);
const identityId: string = ef38f943-47e9-4562-b5bb-8424a56397d8; // The identity ID to retrieve if segmentation is enabled for the identity.
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.getDataSegmentationEnabledForUserV1({ identityId: identityId });
console.log(result);

[Back to top]

list-data-segments-v1

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 segments This API returns the segment specified by the given ID.

API Spec

Parameters

NameTypeDescriptionNotes
enabledbooleanThis boolean indicates whether the segment is currently active. Inactive segments have no effect.[optional] [default to true]
uniquebooleanThis returns only one record if set to true and that would be the published record if exists.[optional] [default to false]
publishedbooleanThis boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published[optional] [default to true]
limitnumberMax number of results to return. See V3 API Standard Collection Parameters for more information.[optional] [default to 250]
offsetnumberOffset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information.[optional] [default to 0]
countbooleanIf 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 V3 API Standard Collection Parameters for more information.[optional] [default to false]
filtersstringFilter results using the standard syntax described in V3 API Standard Collection Parameters Filtering is supported for the following fields and operators: id: eq, in, sw name: eq, in, sw[optional] [default to undefined]
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

Array<DataSegment>

HTTP request headers

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

Example

import { DataSegmentationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new DataSegmentationApi(configuration);
const enabled: boolean = true; // This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional)
const unique: boolean = false; // This returns only one record if set to true and that would be the published record if exists. (optional)
const published: boolean = true; // This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional)
const limit: number = 250; // Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional)
const offset: number = 0; // Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional)
const count: boolean = true; // 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&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional)
const filters: string = name eq ""; // Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, in, sw* (optional)
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.listDataSegmentsV1({ });
console.log(result);

[Back to top]

patch-data-segment-v1

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 segment Use this API to update segment fields by using the JSON Patch standard.

API Spec

Parameters

NameTypeDescriptionNotes
segmentIdstringThe segment ID to modify.[default to undefined]
requestBodyArray<object>A list of segment update operations according to the JSON Patch standard. The following fields are patchable: * name * description * membership * memberFilter * memberSelection * scopes * enabled
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

DataSegment

HTTP request headers

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

Example

import { DataSegmentationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new DataSegmentationApi(configuration);
const segmentId: string = ef38f943-47e9-4562-b5bb-8424a56397d8; // The segment ID to modify.
const requestBody: Array&lt;object&gt; = [{"op":"replace","path":"/memberFilter","value":{"expression":{"operator":"AND","children":[{"operator":"EQUALS","attribute":"location","value":{"type":"STRING","value":"Philadelphia"}},{"operator":"EQUALS","attribute":"department","value":{"type":"STRING","value":"HR"}}]}}}]; // A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * membership * memberFilter * memberSelection * scopes * enabled
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.patchDataSegmentV1({ segmentId: segmentId, requestBody: requestBody });
console.log(result);

[Back to top]

publish-data-segment-v1

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.

Publish segment by id This will publish the segment so that it starts applying the segmentation to the desired users if enabled

API Spec

Parameters

NameTypeDescriptionNotes
segmentIdstringThe segmentId.[default to undefined]
requestBodyArray<string>A list of segment ids that you wish to publish
publishAllbooleanThis flag decides whether you want to publish all unpublished or a list of specific segment ids[optional] [default to true]
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

(empty response body)

HTTP request headers

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

Example

import { DataSegmentationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new DataSegmentationApi(configuration);
const segmentId: string = segmentId_example; // The segmentId.
const requestBody: Array&lt;string&gt; = ; // A list of segment ids that you wish to publish
const publishAll: boolean = true; // This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional)
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.publishDataSegmentV1({ segmentId: segmentId, requestBody: requestBody });
console.log(result);

[Back to top]