OIM12 rest API how to provision entitlement
I am trying to use the rest api for provisioning entitlement
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" -X POST -u xxx:xxx -d @ent1.json https://xxxxxxxxx/iam/governance/selfservice/api/v1/requests
my json looks like this
{
"requests": [
{
"requestId": "214066",
"reqJustification": "Request Entitlement",
"operation": "provision",
"reqBeneficiaryList": [
{
"id": "2014915"
}
],
"reqTargetEntities": [
{
"entityId": "25",
"entityType": "Entitlement"
}
]
}
]
}
I get this error
{"links":[{"rel":"self","href":"https://xxxxxx/iam/governance/selfservice/api/v1/requests"}],"requests":[{"requestId":"214066","status":"FAIL","reason":"One or more target users or requested items no longer exist in the system."}]}
The user does exist with the ID 2014915