Workflow Manage Access - "task failed: activity error (type: sp:access:manage, scheduledEventID: 34, startedEventID: 35, identity: 1@sp-workflow-worker-internal-596fc65d79-hdqkt@sp-workflow-engine): request failed (type: Bad Request, retryable: false): 40

Hi @ChandrakalaS ,

In your original post, you had mentioned that there’s only one entitlement as the response to Get Access step, hence I have posted my response based on that.

But if the Get Access step has a list of entitlements, then you need to make use of Loop Operator as shown below,

Access to Manage: [{“id”:“{{$.loop.loopInput.id}}”,“name”:“{{$.loop.loopInput.name}}”,“type”:“{{$.loop.loopInput.type}}”}]

I have tested and the user is assigned with all list of identities successfully, if you want to filter out the certain entitlements, you can insert a Compare Strings Operation within the loop and compare using the entitlement name ie., Value1= $.loop.loopInput.name and Value2=”Entitlement Name”

Please refer the below documentation on Loop and Compare Strings,

Request you to give it a try and let me know if this works.

Thanks!