while the user is requesting for access through mange user access page
I want to check the country of the user and the region of the application
for Ex: My Identity has country as Ind and the entitlement application region is al IND policy violation should not occur
but if my country is IND and I am requesting for entitlement application region UAE policy violation should occur
Also I want to know How can we fetch the selected entitlement in real time without the provisioning plan is being created?
@deveshrns Formatting rule is to make any modification to violation object post creation. You should use a Policy Rule to evaluate and decide whether the violation should be created or not. This rule have an identity argument which represents the simulated future state of the user. From this identity, you can inspect the updated Links to extract newly requested entitlements. Check the attached article for the sample rule.
@deveshrns If your final requirement is not allowing users to submit request for different country/region, you can achieve this using RequestObjectSelector rule in Quicklinks for entitlements which can allow you to hide the items which should not be applicable for the user.
Hi Neel,
I wanted to know why it is not possible with policy violation rule - is there any way we can check this policy violation if the user is requesting access for the first time??
@deveshrns Please enable logs and see if they are getting printed or not. Also, you need to set policyScheme in your LCM Provisioning, if it is set to none, policies will not be evaluated.
If I am understanding it correctly, you want the user to still see the entitlement that they cannot have and request them and then SailPoint should fail the access request? right?
You can use the policy in preventive mode by configuring the access request workflow to fail when violation occurs. You can customize the message the user sees when this happen in the workflow.