When run on a user, I see TestHRMSBus role only which is provisioned via access request. I dont see posixRoleTest on the user profile in UI.
Here is the extract from debug page. Every time it is run, it adds a row to roleassignment list but no change on UI and no provisioning activity due to new role.
Hi Dheeraj - Understood, and we are using Plan in few scenarios. Am not able to understand why identity.add or identity.addAssignedRole or identity.addRoleAssignment all fail.
Hello Vinil, this is falling because you’re adding the role to the Identity but you don’t send this to the external target system. You need to create a provisioning plan to have the entitlements in your external system.
Regards.
to reiterate what you said, identity.add will only add role on identity and will not provision any attached entitlement even after multiple refresh’s with Provision Entitlements?
If that is true, I should at least see the role on user profile.. I dont see it on the user in UI via Identity Warehouse
Only one role on UI while other assigned role is visible in identity xml multiple times
If you use a refresh after the assign by addRole via Script with the “Provision assignments” flag in true, the entitlment will be provided in the final system, but it’s not automatically. The correct way is assigning by provisioning plan if you want to use scripts.
Is not visible because you must use the provisioning plan to add, to be visible isn’t just about adding the role. You can use the silency mode by script and do not create a visible request.