Create account adds an user with entitlements. To update an account - I have added update account with the put request .
Creating a request from request center for new entitlement is failing.
How this can be done ?
Can someone explain the steps to be added to achieve this update roles?
What is the error you are facing ?
Is Role only your entitlement, I see Add Entitlement - Role.
I need to know the steps. So without add entitlement update account doesn’t work. So I had to add it ,
So I had issues sending role as as an list in the payload, Since the role was multivalued. So I deleted the roles from payload , created Before Operation rule to form a new payload and fixed this issue .
Update has the same payload as create account but its a PUT request. So I’m same issue now .
Do I have to create Before Operation rule again for update as well ?
This is my payload for PUT request.
{
“uid”: “$plan.nativeIdentity$”,
“firstName”: “$plan.firstName$”,
“lastName”: “$plan.lastName$”,
“ibus”: “ADM”,
“roles”:“$plan.roles$”,
“pid”: true,
“lastLogin”: “$plan.lastLogin$”,
“isActive”: true,
“managerUID”: “”
}
How do I get firstname, lastname in update account ?
This is the error Im getting.
If account has been already created and you are trying to add a new entitlement, “Add Entitlement” operation should be more enough(But it may depends on how your app API configured). Isn’t this working?
When you are trying to do update(PUT) operation, only attributes that has been changed will be included in the plan. So here firstname and lastname hasn’t changes thus there are not in the plan.
So When I keep only Add Entitlement and create a request - Im getting err - No configuration found for Update Account.
When I have both Add Entitlement and Update - Im getting this error
So I need to get the attribute values before calling update account. But I’m not sure of the steps.
If I’m adding get object before Add entitlement - How do I get response in BeforeOperationRule bcuz I need to create a json body for update.
Ok as an easy way, have an update provisioning policy created and add all the attributes that you need for PUT operation. For eg., if you want to get firstName from the plan, add it as firstNameX so SailPoint will interpret as if there is a change and push this attribute to the plan. You can get the value using $plan.firstNameX$
Example:
{
"name": "Account",
"description": null,
"usageType": "UPDATE",
"fields": [
{
"name": "idx",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "identificationNumber"
}
},
"attributes": {},
"isRequired": false,
"type": "",
"isMultiValued": false
},
]
}