Skip to main content

LifecycleStatesApi

Use this API to implement and customize lifecycle state functionality. With this functionality in place, administrators can create and configure custom lifecycle states for use across their organizations, which is key to controlling which users have access, when they have access, and the access they have.

A lifecycle state describes a user's status in a company. For example, two lifecycle states come by default with Identity Security Cloud: 'Active' and 'Inactive.' When an active employee takes an extended leave of absence from a company, his or her lifecycle state may change to 'Inactive,' for security purposes. The inactive employee would lose access to all the applications, sources, and sensitive data during the leave of absence, but when the employee returns and becomes active again, all that access would be restored. This saves administrators the time that would otherwise be spent provisioning the employee's access to each individual tool, reviewing the employee's certification history, etc.

Administrators can create a variety of custom lifecycle states. Refer to Planning New Lifecycle States for some custom lifecycle state ideas.

Administrators must define the criteria for being in each lifecycle state, and they must define how Identity Security Cloud manages users' access to apps and sources for each lifecycle state.

In Identity Security Cloud, administrators can manage lifecycle states by going to Admin > Identities > Identity Profile, selecting the identity profile whose lifecycle states they want to manage, selecting the 'Provisioning' tab, and using the left panel to either select the lifecycle state they want to modify or create a new lifecycle state.

In the 'Provisioning' tab, administrators can make the following access changes to an identity profile's lifecycle state:

  • Enable/disable the lifecycle state for the identity profile.

  • Enable/disable source accounts for the identity profile's lifecycle state.

  • Add existing access profiles to grant to the identity profiles in that lifecycle state.

  • Create a new access profile to grant to the identity profile in that lifecycle state.

Access profiles granted in a previous lifecycle state are automatically revoked when the identity moves to a new lifecycle state. To maintain access across multiple lifecycle states, administrators must grant the access profiles in each lifecycle state. For example, if an administrator wants users with the 'HR Employee' identity profile to maintain their building access in both the 'Active' and 'Leave of Absence' lifecycle states, the administrator must grant the access profile for that building access to both lifecycle states.

During scheduled refreshes, Identity Security Cloud evaluates lifecycle states to determine whether their assigned identities have the access defined in the lifecycle states' access profiles. If the identities are missing access, Identity Security Cloud provisions that access.

Administrators can also use the 'Provisioning' tab to configure email notifications for Identity Security Cloud to send whenever an identity with that identity profile has a lifecycle state change. Refer to Configuring Lifecycle State Notifications for more information on how to do so.

An identity's lifecycle state can have four different statuses: the lifecycle state's status can be 'Active,' it can be 'Not Set,' it can be 'Not Valid,' or it 'Does Not Match Technical Name Case.' Refer to Moving Identities into Lifecycle States for more information about these different lifecycle state statuses.

Refer to Setting Up Lifecycle States for more information about lifecycle states.

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

MethodHTTP requestDescription
create-lifecycle-state-v1POST /identity-profiles/v1/{identity-profile-id}/lifecycle-statesCreate lifecycle state
delete-lifecycle-state-v1DELETE /identity-profiles/v1/{identity-profile-id}/lifecycle-states/{lifecycle-state-id}Delete lifecycle state
get-lifecycle-state-v1GET /identity-profiles/v1/{identity-profile-id}/lifecycle-states/{lifecycle-state-id}Get lifecycle state
get-lifecycle-states-v1GET /identity-profiles/v1/{identity-profile-id}/lifecycle-statesLists lifecyclestates
set-lifecycle-state-v1POST /identities/v1/{identity-id}/set-lifecycle-stateSet lifecycle state
update-lifecycle-states-v1PATCH /identity-profiles/v1/{identity-profile-id}/lifecycle-states/{lifecycle-state-id}Update lifecycle state

create-lifecycle-state-v1

Create lifecycle state Use this endpoint to create a lifecycle state.

API Spec

Parameters

NameTypeDescriptionNotes
identityProfileIdstringIdentity profile ID.[default to undefined]
lifecyclestateLifecyclestateLifecycle state to be created.

Return type

Lifecyclestate

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new LifecycleStatesApi(configuration);
const identityProfileId: string = 2b838de9-db9b-abcf-e646-d4f274ad4238; // Identity profile ID.
const lifecyclestate: Lifecyclestate = ; // Lifecycle state to be created.
const result = await apiInstance.createLifecycleStateV1({ identityProfileId: identityProfileId, lifecyclestate: lifecyclestate });
console.log(result);

[Back to top]

delete-lifecycle-state-v1

Delete lifecycle state Use this endpoint to delete the lifecycle state by its ID.

API Spec

Parameters

NameTypeDescriptionNotes
identityProfileIdstringIdentity profile ID.[default to undefined]
lifecycleStateIdstringLifecycle state ID.[default to undefined]

Return type

Lifecyclestatedeleted

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new LifecycleStatesApi(configuration);
const identityProfileId: string = 2b838de9-db9b-abcf-e646-d4f274ad4238; // Identity profile ID.
const lifecycleStateId: string = ef38f94347e94562b5bb8424a56397d8; // Lifecycle state ID.
const result = await apiInstance.deleteLifecycleStateV1({ identityProfileId: identityProfileId, lifecycleStateId: lifecycleStateId });
console.log(result);

[Back to top]

get-lifecycle-state-v1

Get lifecycle state Use this endpoint to get a lifecycle state by its ID and its associated identity profile ID.

API Spec

Parameters

NameTypeDescriptionNotes
identityProfileIdstringIdentity profile ID.[default to undefined]
lifecycleStateIdstringLifecycle state ID.[default to undefined]

Return type

Lifecyclestate

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new LifecycleStatesApi(configuration);
const identityProfileId: string = 2b838de9-db9b-abcf-e646-d4f274ad4238; // Identity profile ID.
const lifecycleStateId: string = ef38f94347e94562b5bb8424a56397d8; // Lifecycle state ID.
const result = await apiInstance.getLifecycleStateV1({ identityProfileId: identityProfileId, lifecycleStateId: lifecycleStateId });
console.log(result);

[Back to top]

get-lifecycle-states-v1

Lists lifecyclestates Use this endpoint to list all lifecycle states by their associated identity profiles.

API Spec

Parameters

NameTypeDescriptionNotes
identityProfileIdstringIdentity profile ID.[default to undefined]
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]
sortersstringSort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: name, priority, created, modified[optional] [default to undefined]

Return type

Array<Lifecyclestate>

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new LifecycleStatesApi(configuration);
const identityProfileId: string = 2b838de9-db9b-abcf-e646-d4f274ad4238; // Identity profile ID.
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 sorters: string = created,modified; // Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, priority, created, modified** (optional)
const result = await apiInstance.getLifecycleStatesV1({ identityProfileId: identityProfileId });
console.log(result);

[Back to top]

set-lifecycle-state-v1

Set lifecycle state Use this API to set/update an identity's lifecycle state to the one provided and update the corresponding identity profile.

API Spec

Parameters

NameTypeDescriptionNotes
identityIdstringID of the identity to update.[default to undefined]
setLifecycleStateV1RequestSetLifecycleStateV1Request

Return type

SetLifecycleStateV1200Response

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new LifecycleStatesApi(configuration);
const identityId: string = 2c9180857893f1290178944561990364; // ID of the identity to update.
const setLifecycleStateV1Request: SetLifecycleStateV1Request = ; //
const result = await apiInstance.setLifecycleStateV1({ identityId: identityId, setLifecycleStateV1Request: setLifecycleStateV1Request });
console.log(result);

[Back to top]

update-lifecycle-states-v1

Update lifecycle state Use this endpoint to update individual lifecycle state fields, using the JSON Patch standard.

API Spec

Parameters

NameTypeDescriptionNotes
identityProfileIdstringIdentity profile ID.[default to undefined]
lifecycleStateIdstringLifecycle state ID.[default to undefined]
jsonpatchoperationArray<Jsonpatchoperation>A list of lifecycle state update operations according to the JSON Patch standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption * accessActionConfiguration * priority

Return type

Lifecyclestate

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new LifecycleStatesApi(configuration);
const identityProfileId: string = 2b838de9-db9b-abcf-e646-d4f274ad4238; // Identity profile ID.
const lifecycleStateId: string = ef38f94347e94562b5bb8424a56397d8; // Lifecycle state ID.
const jsonpatchoperation: Array&lt;Jsonpatchoperation&gt; = [{"op":"replace","path":"/description","value":"Updated description!"},{"op":"replace","path":"/accessProfileIds","value":["2c918087742bab150174407a80f3125e","2c918087742bab150174407a80f3124f"]},{"op":"replace","path":"/accountActions","value":[{"action":"ENABLE","sourceIds":["2c9180846a2f82fb016a481c1b1560c5","2c9180846a2f82fb016a481c1b1560cc"],"excludeSourceIds":null,"allSources":false},{"action":"DISABLE","sourceIds":null,"excludeSourceIds":["3b551ccf5566478b9b77f37de25303aa"],"allSources":true},{"action":"DELETE","sourceIds":["3c9180846a2f82fb016a481c1b1560c5","8n9180846a2f82fb016a481c1b1560cc"],"excludeSourceIds":null,"allSources":false}]},{"op":"replace","path":"/emailNotificationOption","value":{"notifyManagers":true,"notifyAllAdmins":false,"notifySpecificUsers":false,"emailAddressList":[]}},{"op":"replace","path":"/accessActionConfiguration","value":{"removeAllAccessEnabled":true}}]; // A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption * accessActionConfiguration * priority
const result = await apiInstance.updateLifecycleStatesV1({ identityProfileId: identityProfileId, lifecycleStateId: lifecycleStateId, jsonpatchoperation: jsonpatchoperation });
console.log(result);

[Back to top]