Identity Management (MOSC)

MOSC Banner

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center