Hi Dinesh,
The JSON you provided worked. But is assigning only one Entitlement, where as the previous step is getting totally 7 Entitlements. I want all 7 must be assigned to user in different applications. I have multiple assets having Entitlements with same name.
Sending the Workflow execution for your reference. How to fix this issue.
[
{
"type": "WorkflowExecutionStarted",
"timestamp": "2025-08-14T04:28:50.61620152Z",
"attributes": {
"input": {
"_meta": {
"invocationId": "80a1c5d1-9b9b-4437-a024-dca479749cd9",
"subscriptionId": "e389ae6b-9c96-4433-938d-39f00c98da67",
"triggerType": "FIRE_AND_FORGET"
},
"changes": [
{
"attribute": "department",
"newValue": "Engineering",
"oldValue": "HR"
}
],
"identity": {
"id": "8fd15f03f8a84ed9886881e3b3ce1394",
"name": "Allison Harris",
"type": "IDENTITY"
}
}
}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-08-14T04:28:50.713740572Z",
"attributes": {
"displayName": "Wait",
"input": {
"date": null,
"duration": "1m",
"time": null,
"type": "waitFor"
},
"stepName": "wait",
"task": "sp:sleep",
"technicalName": "Wait"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-08-14T04:28:50.713800256Z",
"attributes": {
"attempts": 1,
"displayName": "Wait",
"stepName": "wait",
"task": "sp:sleep",
"technicalName": "Wait"
}
},
{
"type": "ActivityTaskCompleted",
"timestamp": "2025-08-14T04:28:50.72703327Z",
"attributes": {
"displayName": "Wait",
"result": {
"duration": "1m0s"
},
"stepName": "wait",
"task": "sp:sleep",
"technicalName": "Wait"
}
},
{
"type": "TimerStarted",
"timestamp": "2025-08-14T04:28:50.752992175Z",
"attributes": {}
},
{
"type": "TimerFired",
"timestamp": "2025-08-14T04:29:50.754734547Z",
"attributes": {}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-08-14T04:29:50.781917423Z",
"attributes": {
"displayName": "Compare Strings",
"input": {
"compareStrings": {
"ChoiceList": [
{
"Comparator": "StringEquals",
"NextStep": "Get Identity",
"VariableA.$": "$.trigger.changes[?(@.attribute=='department')].newValue",
"VariableB": "Engineering"
}
],
"DefaultStep": "success",
"Description": "Determines whether the identity's department attribute was updated to Sales. If so, the workflow proceeds. Otherwise, the workflow ends.\n\nNOTE: This template makes an assumption in later actions/nodes about the identity's former department. You could use an additional operator with branching steps for different departments for more flexibility.",
"Name": "Compare Strings",
"SelectInput": "$",
"SelectOutput": "$",
"SelectResult": "$",
"Type": "choice"
},
"trigger": {
"_meta": {
"invocationId": "80a1c5d1-9b9b-4437-a024-dca479749cd9",
"subscriptionId": "e389ae6b-9c96-4433-938d-39f00c98da67",
"triggerType": "FIRE_AND_FORGET"
},
"changes": [
{
"attribute": "department",
"newValue": "Engineering",
"oldValue": "HR"
}
],
"identity": {
"id": "8fd15f03f8a84ed9886881e3b3ce1394",
"name": "Allison Harris",
"type": "IDENTITY"
}
},
"wait": {
"duration": "1m0s"
}
},
"stepName": "compareStrings",
"task": "sp:internal:operator",
"technicalName": "Compare Strings"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-08-14T04:29:50.781960369Z",
"attributes": {
"attempts": 1,
"displayName": "Compare Strings",
"stepName": "compareStrings",
"task": "sp:internal:operator",
"technicalName": "Compare Strings"
}
},
{
"type": "ActivityTaskCompleted",
"timestamp": "2025-08-14T04:29:50.796241283Z",
"attributes": {
"displayName": "Compare Strings",
"result": {
"next": "Get Identity",
"output": true
},
"stepName": "compareStrings",
"task": "sp:internal:operator",
"technicalName": "Compare Strings"
}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-08-14T04:29:50.817882293Z",
"attributes": {
"displayName": "Get Identity",
"input": {
"id": "8fd15f03f8a84ed9886881e3b3ce1394",
"method": "GET",
"path": "v3/identities/8fd15f03f8a84ed9886881e3b3ce1394",
"service": "mice"
},
"stepName": "getIdentity",
"task": "sp:get-identity",
"technicalName": "Get Identity"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-08-14T04:29:50.817922588Z",
"attributes": {
"attempts": 1,
"displayName": "Get Identity",
"stepName": "getIdentity",
"task": "sp:get-identity",
"technicalName": "Get Identity"
}
},
{
"type": "ActivityTaskCompleted",
"timestamp": "2025-08-14T04:29:51.320405727Z",
"attributes": {
"displayName": "Get Identity",
"result": {
"alias": "Allison Harris",
"attributes": {
"cloudAuthoritativeSource": "0f02a24fd1cd4276bc7f614ef0df9f46",
"cloudLifecycleState": "active",
"cloudStatus": "UNREGISTERED",
"department": "Engineering",
"displayName": "Allison Harris",
"email": "allison.harris@askiam.ai",
"employmentType": "Employee",
"firstname": "Allison",
"identificationNumber": "Emp1019",
"identityState": "ACTIVE",
"internalCloudStatus": "UNREGISTERED",
"jobTitle": "Recruiter",
"lastSyncDate": "445ebe840d08f38106435d826ac16c7de3e1a5f99be2e7ac0b823ae3fe7f2c7c",
"lastname": "Harris",
"location": "Chicago",
"managerEmail": "barbara.thomas@askiam.ai",
"startDate": "12/23/2020 0:0:0 AM UTC",
"status": "active",
"uid": "Allison Harris",
"visibleSegments": [
"62c905b2-5462-4959-9f63-397ad9413b50"
]
},
"created": "2025-05-24T05:42:35.352Z",
"emailAddress": "allison.harris@askiam.ai",
"id": "8fd15f03f8a84ed9886881e3b3ce1394",
"identityStatus": "UNREGISTERED",
"isManager": true,
"lastRefresh": "2025-08-14T04:29:25.811Z",
"lifecycleState": {
"manuallyUpdated": false,
"stateName": "active"
},
"managerRef": {
"id": "d0b1af2c6b5847fd9ae31db041bf8727",
"name": "Barbara Thomas",
"type": "IDENTITY"
},
"modified": "2025-08-14T04:29:28.233Z",
"name": "Allison Harris",
"processingState": null
},
"stepName": "getIdentity",
"task": "sp:get-identity",
"technicalName": "Get Identity"
}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-08-14T04:29:51.343520392Z",
"attributes": {
"displayName": "Get Access",
"input": {
"accessprofiles": false,
"entitlements": true,
"getAccessBy": "searchQuery",
"identityToReturn": null,
"query": "name.exact:(\"All Employees\" OR \"Engineering\")",
"roles": true
},
"stepName": "getAccess",
"task": "sp:access:get",
"technicalName": "Get Access"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-08-14T04:29:51.343575226Z",
"attributes": {
"attempts": 1,
"displayName": "Get Access",
"stepName": "getAccess",
"task": "sp:access:get",
"technicalName": "Get Access"
}
},
{
"type": "ActivityTaskCompleted",
"timestamp": "2025-08-14T04:29:51.512630243Z",
"attributes": {
"displayName": "Get Access",
"result": [
{
"id": "0418e6ea048b336d81833342c179ed11",
"name": "All Employees",
"type": "ENTITLEMENT"
},
{
"id": "3012f6674abb3d3bac27060c612f8870",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "79fd030eda223a7cb7d1d6ac526cdb27",
"name": "All Employees",
"type": "ENTITLEMENT"
},
{
"id": "7a9b25fa7db5310ebd008fb7a727624b",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "a2ae0638956e32b9a697344cc262b968",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "acc73b42d48233ba9dcc54c9796b1abc",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "d0122ef565ac30efae6fde5a87332b90",
"name": "All Employees",
"type": "ENTITLEMENT"
},
{
"id": "de396e82fb8635b0823b7fadd0b4b1a3",
"name": "All Employees",
"type": "ENTITLEMENT"
},
{
"id": "ec35bd9cad343050945b784b0e2373d2",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "f5aabf8875ff3be9958542d77d014dc2",
"name": "All Employees",
"type": "ENTITLEMENT"
}
],
"stepName": "getAccess",
"task": "sp:access:get",
"technicalName": "Get Access"
}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-08-14T04:29:51.536423184Z",
"attributes": {
"displayName": "Manage Access",
"input": {
"addIdentities": "8fd15f03f8a84ed9886881e3b3ce1394",
"comments": "Automatically requested as transitory access by workflows",
"removeDuration": "1w",
"removeIdentity": null,
"requestType": "GRANT_ACCESS",
"requestedItems": {
"id": "0418e6ea048b336d81833342c179ed11",
"name": "All Employees",
"type": "ENTITLEMENT"
},
"suppliedInlineExpression": {
"requestedItems": "[{\"id\":\"{{$.getAccess.accessItems[0].id}}\",\"name\":\"{{$.getAccess.accessItems[0].name}}\",\"type\":\"{{$.getAccess.accessItems[0].type}}\"}]"
}
},
"stepName": "manageAccess",
"task": "sp:access:manage",
"technicalName": "Manage Access"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-08-14T04:29:51.536460132Z",
"attributes": {
"attempts": 1,
"displayName": "Manage Access",
"stepName": "manageAccess",
"task": "sp:access:manage",
"technicalName": "Manage Access"
}
},
{
"type": "ActivityTaskCompleted",
"timestamp": "2025-08-14T04:29:52.019415751Z",
"attributes": {
"displayName": "Manage Access",
"result": {
"failedAccessRequests": [],
"successfulAccessRequests": [
{
"id": "0418e6ea048b336d81833342c179ed11",
"name": "All Employees",
"type": "ENTITLEMENT"
}
]
},
"stepName": "manageAccess",
"task": "sp:access:manage",
"technicalName": "Manage Access"
}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-08-14T04:29:52.042476352Z",
"attributes": {
"displayName": "Get Identity 1",
"input": {
"id": "d0b1af2c6b5847fd9ae31db041bf8727",
"method": "GET",
"path": "v3/identities/d0b1af2c6b5847fd9ae31db041bf8727",
"service": "mice"
},
"stepName": "getIdentity1",
"task": "sp:get-identity",
"technicalName": "Get Identity 1"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-08-14T04:29:52.042516533Z",
"attributes": {
"attempts": 1,
"displayName": "Get Identity 1",
"stepName": "getIdentity1",
"task": "sp:get-identity",
"technicalName": "Get Identity 1"
}
},
{
"type": "ActivityTaskCompleted",
"timestamp": "2025-08-14T04:29:52.087690324Z",
"attributes": {
"displayName": "Get Identity 1",
"result": {
"alias": "Barbara Thomas",
"attributes": {
"cloudAuthoritativeSource": "0f02a24fd1cd4276bc7f614ef0df9f46",
"cloudLifecycleState": "active",
"cloudStatus": "UNREGISTERED",
"department": "Finance",
"displayName": "Barbara Thomas",
"email": "barbara.thomas@askiam.ai",
"employmentType": "Employee",
"firstname": "Barbara",
"identificationNumber": "Emp1006",
"identityState": "ACTIVE",
"internalCloudStatus": "UNREGISTERED",
"jobTitle": "Analyst",
"lastSyncDate": "aee1b843e9c73030905af50dc1229762d9b2f59e8aa6ded1daf5aecdfb44d9eb",
"lastname": "Thomas",
"location": "Leeds",
"startDate": "5/31/2022 0:0:0 AM UTC",
"status": "active",
"uid": "Barbara Thomas",
"visibleSegments": [
"62c905b2-5462-4959-9f63-397ad9413b50"
]
},
"created": "2025-05-24T05:42:34.640Z",
"emailAddress": "barbara.thomas@askiam.ai",
"id": "d0b1af2c6b5847fd9ae31db041bf8727",
"identityStatus": "UNREGISTERED",
"isManager": true,
"lastRefresh": "2025-08-14T00:05:54.587Z",
"lifecycleState": {
"manuallyUpdated": false,
"stateName": "active"
},
"managerRef": null,
"modified": "2025-08-14T01:18:10.122Z",
"name": "Barbara Thomas",
"processingState": null
},
"stepName": "getIdentity1",
"task": "sp:get-identity",
"technicalName": "Get Identity 1"
}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-08-14T04:29:52.11102898Z",
"attributes": {
"displayName": "Send Email",
"input": {
"body": {
"context": {
"name": "Allison Harris"
},
"emailTemplate": {
"body": "<p>Attention, </p>\n<p>User <strong>${name} </strong>has recently changed department.</p>\n<p><br>Thank you,<br>Your Access Team</p>",
"from": "",
"replyTo": "",
"subject": "Department Change"
},
"medium": "EMAIL",
"recipientEmailList": "barbara.thomas@askiam.ai"
},
"context": {
"name": "Allison Harris"
},
"method": "POST",
"path": "notification/send-notification",
"recipientEmailList": "barbara.thomas@askiam.ai",
"recipientId": "d0b1af2c6b5847fd9ae31db041bf8727",
"service": "hermes",
"subject": "Department Change",
"useInternalClient": true
},
"stepName": "sendEmail",
"task": "sp:send-email",
"technicalName": "Send Email"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-08-14T04:29:52.111068849Z",
"attributes": {
"attempts": 1,
"displayName": "Send Email",
"stepName": "sendEmail",
"task": "sp:send-email",
"technicalName": "Send Email"
}
},
{
"type": "ActivityTaskCompleted",
"timestamp": "2025-08-14T04:29:52.511369699Z",
"attributes": {
"displayName": "Send Email",
"result": {},
"stepName": "sendEmail",
"task": "sp:send-email",
"technicalName": "Send Email"
}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-08-14T04:29:52.534150851Z",
"attributes": {
"displayName": "Create Certification Campaign",
"input": {
"body": {
"campaignSizeType": "FULL",
"description": "Department Change",
"duration": "1w",
"emailNotificationEnabled": true,
"name": "Allison Harris",
"searchCampaignInfo": {
"query": "id: 8fd15f03f8a84ed9886881e3b3ce1394",
"reviewer": {
"id": "d0b1af2c6b5847fd9ae31db041bf8727"
},
"type": "IDENTITY"
},
"type": "SEARCH"
},
"description": "Department Change",
"duration": "1w",
"emailNotificationEnabled": true,
"identityId": "8fd15f03f8a84ed9886881e3b3ce1394",
"name": "Allison Harris",
"reviewerId": "d0b1af2c6b5847fd9ae31db041bf8727"
},
"stepName": "createCertificationCampaign",
"task": "sp:create-campaign",
"technicalName": "Create Certification Campaign"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-08-14T04:29:58.621808406Z",
"attributes": {
"attempts": 3,
"displayName": "Create Certification Campaign",
"lastKnownError": "requested cert campaign is still pending",
"stepName": "createCertificationCampaign",
"task": "sp:create-campaign",
"technicalName": "Create Certification Campaign"
}
},
{
"type": "ActivityTaskCompleted",
"timestamp": "2025-08-14T04:29:58.821209339Z",
"attributes": {
"displayName": "Create Certification Campaign",
"result": {
"autoRevokeAllowed": false,
"campaignFilter": {
"id": "",
"type": ""
},
"deadline": "2025-08-21T04:29:52Z",
"description": "Department Change",
"emailNotificationEnabled": true,
"id": "c66268dceaa24da193a78fe8caebd40e",
"name": "Allison Harris",
"recommendationsEnabled": false,
"status": "STAGED",
"type": ""
},
"stepName": "createCertificationCampaign",
"task": "sp:create-campaign",
"technicalName": "Create Certification Campaign"
}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-08-14T04:29:58.84435991Z",
"attributes": {
"displayName": "success",
"input": {},
"stepName": "success",
"task": "sp:internal:operator",
"technicalName": "success"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-08-14T04:29:58.844511901Z",
"attributes": {
"attempts": 1,
"displayName": "success",
"stepName": "success",
"task": "sp:internal:operator",
"technicalName": "success"
}
},
{
"type": "ActivityTaskCompleted",
"timestamp": "2025-08-14T04:29:58.85704282Z",
"attributes": {
"displayName": "success",
"result": {},
"stepName": "success",
"task": "sp:internal:operator",
"technicalName": "success"
}
},
{
"type": "WorkflowExecutionCompleted",
"timestamp": "2025-08-14T04:29:58.880450325Z",
"attributes": {
"result": {
"4328fadec134429198c6938e52260756": "0198a6d6-7a38-730f-848f-0a5f0c43f3dd",
"compareStrings": {
"ChoiceList": [
{
"Comparator": "StringEquals",
"NextStep": "Get Identity",
"VariableA.$": "$.trigger.changes[?(@.attribute=='department')].newValue",
"VariableB": "Engineering"
}
],
"DefaultStep": "success",
"Description": "Determines whether the identity's department attribute was updated to Sales. If so, the workflow proceeds. Otherwise, the workflow ends.\n\nNOTE: This template makes an assumption in later actions/nodes about the identity's former department. You could use an additional operator with branching steps for different departments for more flexibility.",
"Name": "Compare Strings",
"SelectInput": "$",
"SelectOutput": "$",
"SelectResult": "$",
"Type": "choice"
},
"createCertificationCampaign": {
"autoRevokeAllowed": false,
"campaignFilter": {
"id": "",
"type": ""
},
"deadline": "2025-08-21T04:29:52Z",
"description": "Department Change",
"emailNotificationEnabled": true,
"id": "c66268dceaa24da193a78fe8caebd40e",
"name": "Allison Harris",
"recommendationsEnabled": false,
"status": "STAGED",
"type": ""
},
"getAccess": {
"accessItems": [
{
"id": "0418e6ea048b336d81833342c179ed11",
"name": "All Employees",
"type": "ENTITLEMENT"
},
{
"id": "3012f6674abb3d3bac27060c612f8870",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "79fd030eda223a7cb7d1d6ac526cdb27",
"name": "All Employees",
"type": "ENTITLEMENT"
},
{
"id": "7a9b25fa7db5310ebd008fb7a727624b",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "a2ae0638956e32b9a697344cc262b968",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "acc73b42d48233ba9dcc54c9796b1abc",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "d0122ef565ac30efae6fde5a87332b90",
"name": "All Employees",
"type": "ENTITLEMENT"
},
{
"id": "de396e82fb8635b0823b7fadd0b4b1a3",
"name": "All Employees",
"type": "ENTITLEMENT"
},
{
"id": "ec35bd9cad343050945b784b0e2373d2",
"name": "Engineering",
"type": "ENTITLEMENT"
},
{
"id": "f5aabf8875ff3be9958542d77d014dc2",
"name": "All Employees",
"type": "ENTITLEMENT"
}
]
},
"getIdentity": {
"alias": "Allison Harris",
"attributes": {
"cloudAuthoritativeSource": "0f02a24fd1cd4276bc7f614ef0df9f46",
"cloudLifecycleState": "active",
"cloudStatus": "UNREGISTERED",
"department": "Engineering",
"displayName": "Allison Harris",
"email": "allison.harris@askiam.ai",
"employmentType": "Employee",
"firstname": "Allison",
"identificationNumber": "Emp1019",
"identityState": "ACTIVE",
"internalCloudStatus": "UNREGISTERED",
"jobTitle": "Recruiter",
"lastSyncDate": "445ebe840d08f38106435d826ac16c7de3e1a5f99be2e7ac0b823ae3fe7f2c7c",
"lastname": "Harris",
"location": "Chicago",
"managerEmail": "barbara.thomas@askiam.ai",
"startDate": "12/23/2020 0:0:0 AM UTC",
"status": "active",
"uid": "Allison Harris",
"visibleSegments": [
"62c905b2-5462-4959-9f63-397ad9413b50"
]
},
"created": "2025-05-24T05:42:35.352Z",
"emailAddress": "allison.harris@askiam.ai",
"id": "8fd15f03f8a84ed9886881e3b3ce1394",
"identityStatus": "UNREGISTERED",
"isManager": true,
"lastRefresh": "2025-08-14T04:29:25.811Z",
"lifecycleState": {
"manuallyUpdated": false,
"stateName": "active"
},
"managerRef": {
"id": "d0b1af2c6b5847fd9ae31db041bf8727",
"name": "Barbara Thomas",
"type": "IDENTITY"
},
"modified": "2025-08-14T04:29:28.233Z",
"name": "Allison Harris",
"processingState": null
},
"getIdentity1": {
"alias": "Barbara Thomas",
"attributes": {
"cloudAuthoritativeSource": "0f02a24fd1cd4276bc7f614ef0df9f46",
"cloudLifecycleState": "active",
"cloudStatus": "UNREGISTERED",
"department": "Finance",
"displayName": "Barbara Thomas",
"email": "barbara.thomas@askiam.ai",
"employmentType": "Employee",
"firstname": "Barbara",
"identificationNumber": "Emp1006",
"identityState": "ACTIVE",
"internalCloudStatus": "UNREGISTERED",
"jobTitle": "Analyst",
"lastSyncDate": "aee1b843e9c73030905af50dc1229762d9b2f59e8aa6ded1daf5aecdfb44d9eb",
"lastname": "Thomas",
"location": "Leeds",
"startDate": "5/31/2022 0:0:0 AM UTC",
"status": "active",
"uid": "Barbara Thomas",
"visibleSegments": [
"62c905b2-5462-4959-9f63-397ad9413b50"
]
},
"created": "2025-05-24T05:42:34.640Z",
"emailAddress": "barbara.thomas@askiam.ai",
"id": "d0b1af2c6b5847fd9ae31db041bf8727",
"identityStatus": "UNREGISTERED",
"isManager": true,
"lastRefresh": "2025-08-14T00:05:54.587Z",
"lifecycleState": {
"manuallyUpdated": false,
"stateName": "active"
},
"managerRef": null,
"modified": "2025-08-14T01:18:10.122Z",
"name": "Barbara Thomas",
"processingState": null
},
"manageAccess": {
"failedAccessRequests": [],
"successfulAccessRequests": [
{
"id": "0418e6ea048b336d81833342c179ed11",
"name": "All Employees",
"type": "ENTITLEMENT"
}
]
},
"sendEmail": {},
"trigger": {
"_meta": {
"invocationId": "80a1c5d1-9b9b-4437-a024-dca479749cd9",
"subscriptionId": "e389ae6b-9c96-4433-938d-39f00c98da67",
"triggerType": "FIRE_AND_FORGET"
},
"changes": [
{
"attribute": "department",
"newValue": "Engineering",
"oldValue": "HR"
}
],
"identity": {
"id": "8fd15f03f8a84ed9886881e3b3ce1394",
"name": "Allison Harris",
"type": "IDENTITY"
}
},
"wait": {
"duration": "1m0s"
}
}
}
}
]