IdentityIQ Plugin APIs
The IdentityIQ(IIQ) plugin talks to the IdentityIQ IGA service. Once an IIQ plugin is used to define an actor, the actor object is available with the following APIs
GetSchema()
The API returns the schema for the IIQ service. The function does not accept any parameters.
Example
let schema = actor.GetSchema();
GetIdentity(id)
The API returns the SCIM representation of an identity given the id
of the identity.
Name | Type | Description |
---|---|---|
id | String | The GUID of the identity. |
Example
let identity = actor.GetIdentity("ac1700048a0215b3818a033eeef800ee");
GetIdentityRolesAndEntitlements(id)
The API returns the roles and entitlements of an identity given the id
of the identity.
Name | Type | Description |
---|---|---|
id | String | The GUID of the identity. |
Example
let userRoles = actor.GetIdentityRolesAndEntitlements("ac1700048a0215b3818a033eeef800ee");
UpdateIdentity(id, attributes)
The API updates the given identity represented by id
with the set of attributes given by attributes
.
Name | Type | Description |
---|---|---|
id | String | The GUID of the identity. |
attributes | Object | Key-value object representing the attributes to be updated. |
Example
let activateAssociate = {
"urn:ietf:params:scim:schemas:sailpoint:1.0:User": {
employeeStatus: "A",
employeeStatusDescr: "Active",
},
};
let updatedIdentity = actor.UpdateIdentity("ac1700048a0215b3818a033eeef800ee", activateAssociate);
UpdateIdentityWithBP(id, attributesList)
The API updates the given identity represented by id
with the set of attributes given by attributesList
using the default Edit identity Workflow. This API becomes handy when certain events are only triggered on attribute change when modified through the default edit identity form.
Name | Type | Description |
---|---|---|
id | String | The GUID of the identity. |
attributesList | Object | Key-value object representing the attributes to be updated. |
Example
const activateAssociate = [
{
name: "employeeStatus",
value: "A",
},
{
name: "employeeStatusDescr",
value: "Active",
},
];
let ret = actor.UpdateIdentityWithBP(id, activateAssociate);
DeleteIdentity(id)
The API deletes the identity in IIQ represented by the id
.
Name | Type | Description |
---|---|---|
id | String | The GUID of the identity. |
Example
let ret = actor.DeleteIdentity(id);
StartTask(taskName, serverName, taskArguments)
The API starts a task in IdentityIQ.
Name | Type | Description |
---|---|---|
taskName | String | The name of the task to start in IdentityIQ. |
serverName | String | The DNS name of the server where the task should be started. For the current server, pass an empty string. |
taskArguments | Object | The set of arguments to be passed to the task being started. |
Example
let task = actor.StartTask("Refresh Identity Cube", "", {
filter: `id == "${id}"`,
});
GetTaskStatus(taskIdentifier)
The API returns the current status of an instance of a task.
Name | Type | Description |
---|---|---|
taskIdentifier | String | The id of the task instance |
Example
let status = actor.GetTaskStatus("ac1700048a0215b3818a03df31d40206");
SearchIdentities(returnedAttrs, filter)
The API helps search for identities given a filter
and returns the attributes requested through returnedAttrs
.
Name | Type | Description |
---|---|---|
returnedAttrs | String | Comma separated list of attribute names to be returned. |
filter | String | The filter to be used as search criteria in the search. |
Example
const filter = `(${namingAttr} == "${namingAttrValue}")`;
const returnedAttributes = "id";
let result = actor.SearchIdentities(returnedAttributes, filter);
SetTimeMachine(numberOfDays, serverName)
The API sets the time machine on IIQ server serverName
to numberOfDays
in the future.
Name | Type | Description |
---|---|---|
numberOfDays | Number | The number of days to be advanced with the time machine. |
serverName | String | The DNS name of the server where the time machine should be advanced. |
Example
let msg = actor.SetTimeMachine(15, "srv2.corp.bazc.com");
ResetTimeMachine()
The API reset the time machine in the IIQ server. The API doesn't accept any parameters.
Example
actor.ResetTimeMachine();