Skip to main content

SearchAttributeConfigurationApi

Use this API to implement search attribute configuration functionality, along with Search. With this functionality in place, administrators can create custom search attributes that and run extended searches based on those attributes to further narrow down their searches and get the information and insights they want.

Identity Security Cloud (ISC) enables organizations to store user data from across all their connected sources and manage the users' access, so the ability to query and filter that data is essential.
Its search goes through all those sources and finds the results quickly and specifically.

The search query is flexible - it can be very broad or very narrow. The search only returns results for searchable objects it is filtering for. The following objects are searchable: identities, roles, access profiles, entitlements, events, and account activities. By default, no filter is applied, so a search for "Ad" returns both the identity "Adam.Archer" as well as the role "Administrator."

Users can further narrow their results by using ISC's specific syntax and punctuation to structure their queries. For example, the query "attributes.location:austin AND NOT manager.name:amanda.ross" returns all results associated with the Austin location, but it excludes those associated with the manager Amanda Ross. Refer to Building a Search Query for more information about how to construct specific search queries.

Refer to Search Attribute Configuration for more information about ISC's search and its different possibilities.

With Search Attribute Configuration, administrators can create, manage, and run searches based on the attributes they want to search.

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

MethodHTTP requestDescription
create-search-attribute-config-v1POST /accounts/v1/search-attribute-configCreate extended search attributes
delete-search-attribute-config-v1DELETE /accounts/v1/search-attribute-config/{name}Delete extended search attribute
get-search-attribute-config-v1GET /accounts/v1/search-attribute-configList extended search attributes
get-single-search-attribute-config-v1GET /accounts/v1/search-attribute-config/{name}Get extended search attribute
patch-search-attribute-config-v1PATCH /accounts/v1/search-attribute-config/{name}Update extended search attribute

create-search-attribute-config-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.

Create extended search attributes Create and configure extended search attributes. This API accepts an attribute name, an attribute display name and a list of name/value pair associates of application IDs to attribute names. It will then validate the inputs and configure/create the attribute promotion configuration in the Link ObjectConfig.

Note: Give searchable attributes unique names. Do not give them the same names used for account attributes or source attributes. Also, do not give them the same names present in account schema for a current or future source, regardless of whether that source is included in the searchable attributes' applicationAttributes.

API Spec

Parameters

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

Return type

object

HTTP request headers

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

Example

import { SearchAttributeConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
import { Searchattributeconfig } from 'sailpoint-api-client/dist/search_attribute_configuration/api';

const configuration = new Configuration();
const apiInstance = new SearchAttributeConfigurationApi(configuration);
const searchattributeconfig: Searchattributeconfig = {"name":"newMailAttribute","displayName":"New Mail Attribute","applicationAttributes":{"2c9180866166b5b0016167c32ef31a66":"mail","2c9180866166b5b0016167c32ef31a67":"mail"}}; //
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.createSearchAttributeConfigV1({ searchattributeconfig: searchattributeconfig });
console.log(result);

[Back to top]

delete-search-attribute-config-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 extended search attribute Delete an extended attribute configuration by name.

API Spec

Parameters

NameTypeDescriptionNotes
namestringName of the extended search attribute configuration to delete.[default to undefined]
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 { SearchAttributeConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new SearchAttributeConfigurationApi(configuration);
const name: string = newMailAttribute; // Name of the extended search attribute configuration to delete.
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.deleteSearchAttributeConfigV1({ name: name });
console.log(result);

[Back to top]

get-search-attribute-config-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.

List extended search attributes Get a list of attribute/application attributes currently configured in Identity Security Cloud (ISC).

API Spec

Parameters

NameTypeDescriptionNotes
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]
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

Array<Searchattributeconfig>

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new SearchAttributeConfigurationApi(configuration);
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 xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.getSearchAttributeConfigV1({ });
console.log(result);

[Back to top]

get-single-search-attribute-config-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 extended search attribute Get an extended attribute configuration by name.

API Spec

Parameters

NameTypeDescriptionNotes
namestringName of the extended search attribute configuration to get.[default to undefined]
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

Searchattributeconfig

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new SearchAttributeConfigurationApi(configuration);
const name: string = newMailAttribute; // Name of the extended search attribute configuration to get.
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.getSingleSearchAttributeConfigV1({ name: name });
console.log(result);

[Back to top]

patch-search-attribute-config-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 extended search attribute Update an existing search attribute configuration. You can patch these fields:

  • name * displayName * applicationAttributes

API Spec

Parameters

NameTypeDescriptionNotes
namestringName of the search attribute configuration to patch.[default to undefined]
jsonpatchoperationArray<Jsonpatchoperation>
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

Searchattributeconfig

HTTP request headers

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

Example

import { SearchAttributeConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
import { Jsonpatchoperation } from 'sailpoint-api-client/dist/search_attribute_configuration/api';

const configuration = new Configuration();
const apiInstance = new SearchAttributeConfigurationApi(configuration);
const name: string = promotedMailAttribute; // Name of the search attribute configuration to patch.
const jsonpatchoperation: Array<Jsonpatchoperation> = [{"op":"replace","path":"/name","value":"newAttributeName"},{"op":"replace","path":"/displayName","value":"new attribute display name"},{"op":"add","path":"/applicationAttributes","value":{"2c91808b79fd2422017a0b35d30f3968":"employeeNumber"}}]; //
const xSailPointExperimental: string = true; // Use this header to enable this experimental API. (optional)
const result = await apiInstance.patchSearchAttributeConfigV1({ name: name, jsonpatchoperation: jsonpatchoperation });
console.log(result);

[Back to top]