Update Lifecycle State Attribute Value

Hello Team,

Could you please help me update the Lifecycle State attribute using a form in IdentityNow? Currently, I am able to trigger the form, but I need guidance on which API can be used to update the identity attribute value from ActiveSF to Terminated.

Thanks

you need a workflow where user is selected in form and you need to call workflow to make him as terminated

ImmediateIdentityTermination.json (7.3 KB)
these is the workflow to do immediate termination with the help of form

thanks. i have checked the workflow and noticed that there is an HTTP request to update the lifecycle state for the user.

any idea how to get the lifecycle state code as you have used that into the Body or which API

Even i dont find any API related to identities under V3 for Set Lifecycle state.

{“lifecycleStateId”:“8445ac1b542644909aae05014813cac7”}

these one ?

you should check in life cycle state patch operation

okay thanks..

https://xxxxxapi.identitynow.com/v3/identities/{{$.loop.loopInput}}/set-lifecycle-state

i dont find the API to set the lifecycle state for the identity Attribute value. is it correctly working your environment. Please confirm.

Thanks

yes
it is working in my env

You can set a lifecycle state using the API described here:

Depending on your workflow, it should have steps similar to the following:

  1. Interactive trigger tied to a launcher
  2. Present interactive form to choose the identity
  3. use the data from the form to get identity details
  4. potentially, provide a second interactive form to confirm that you have the correct identity
  5. Call the API
    POST /v2026/identities/:identity-id/set-lifecycle-state
    Body:
    {
    "lifecycleStateId": “123456789”
    }

Navigate to identityProfiles on your tenant, pick the correct profile and LCS, and the last string in the URL will be the value that you are looking for