Policy Violation Help

Which IIQ version are you inquiring about?

8.5

Share all details about your problem, including any error messages you may have received.

I’m having a real challenge with policy violations that I just can’t work around. Ideally, I want this behaviour:

  1. A user submits a request for a single user and if it violates the policy, they aren’t allowed to submit the request until they fix it. (policyScheme interactive and allowRequestsWithViolations false)
  2. A user submits a request for multiple users in a single request and it should create a policy violation work item and be assigned to a workgroup.

I can’t seem to do both. If I set it to be assigned to a workgroup, then I lose the UI message to the user (the interactive piece) and a work item is created instead. If I stick with the interactive piece, then on multi-user requests, the violation is created for the requester!?!

Is there a way to do this? Or am I going to have to pick one option? Neither is ideal as it works out of the box.

Hi @karen_delucia

Thanks for sharing the details.

To better understand the issue, could you please clarify a few things?

  1. Are you using the out-of-the-box LCM Provisioning workflow, or have you customized it?
  2. Where have you configured the workgroup assignment – in the Policy Violation Owner setting or through a custom workflow?
  3. For multi-user requests, do you want the entire request to be held for workgroup approval, or should only the policy violation be assigned to the workgroup?
  4. Could you share the relevant Policy Scheme and policy violation configuration?

This information will help me understand your current setup and identify how we can achieve both single-user interactive validation and multi-user workgroup assignment.

Hey @karen_delucia,

I reproduced this on 8.5, and it’s expected behavior. It comes down to how interactive mode works.

How interactive mode works

The violation warning on the request page isn’t a check that runs before submit. Once you click Submit, LCM Provisioning has already started. The Identity Request Violation Review subprocess finds the violations and creates a real ViolationReview work item, saved in the database, with the requester as owner:

<Approval renderer='lcmViolationReviewRenderer.xhtml' mode="ref:approvalMode" owner="ref:launcher" ...>

The workflow then waits on that work item. The “interactive” part is just the UI opening that work item inline right after submission.

Single-user requests

The UI gets the work item back and shows it on the request page. That’s the blocking message. If the user removes the conflicting items or clicks Cancel, the work item is completed or deleted. If they just navigate away, it stays in their inbox and the request stays pending. So single-user requests create violation work items too. You only see them inline.

Multi-user requests

IIQ launches one LCM Provisioning workflow per identity, and each creates its own ViolationReview work item for the requester. The UI only opens a violation review inline when the submission returns exactly one result. With several, nothing is shown, and the work items are left in the requester’s inbox.

Why assigning to a workgroup breaks the interactive part

The UI can only show the violation review inline if the requester owns the work item at the moment the submit returns. If you change the owner at creation (the approval owner, a work item forward rule, etc.), the submit comes back without a work item, and the request looks like a normal submission. That’s the behavior you saw. The workflow also gets the same arguments for single-user and multi-user requests, so it can’t route them differently.

Your actual problem and some solutions that I can think of

So interactive mode is already doing what you want for single-user requests. The only real issue is this one:

If I stick with the interactive piece, then on multi-user requests, the violation is created for the requester!?!

You can fix that with a scheduled Run Rule task. Keep policyScheme = interactive and allowRequestsWithViolations = false, and have the rule run every 15 minutes or so. It picks up ViolationReview work items that are still owned by a requester after a short cutoff, and forwards them to your workgroup with Workflower.forward. Single-user requests keep their interactive screen, because the requester handles them right away. The multi-user ones end up with the workgroup. If you want the workgroup to be able to approve despite the violation, the rule should also set allowRequestsWithViolations to true on the work item before forwarding. Otherwise they get the same block as the requester and can only remove items or cancel.

It’s not the cleanest solution, since it works on a timer and doesn’t route the items directly. Two side effects: a single-user violation screen the requester abandons also goes to the workgroup after the cutoff, and so does one someone leaves open for longer than the cutoff. Choose a cutoff that suits your users.

BUT ALSO - Why not make interactive mode work for multiple user requests too? Why would you like to forward those to a workgroup instead of catching them during request submission?

This was a nice discovery for me, so I looked into it further. The server side already returns everything needed: for a multi-user submit, every identity’s result includes its own ViolationReview work item ID. The UI just only acts on it when there’s exactly one result.

So I made a small UI-only plugin that makes interactive mode work for multi-user requests too. When a multi-user submit comes back with violation reviews, it opens the first one on the standard violation review page instead of showing the request as submitted. A bar at the bottom shows “Policy violation review 1 of 2 from your request”. Once the requester removes the conflicting items or cancels, it moves on to the next one, until they’ve all been handled. Single-user requests behave exactly as before.

It doesn’t change any SailPoint files or workflows. It’s a plugin snippet that reads the Request Access submit response and uses the existing violation review page, so you can turn it off by disabling the plugin. I’ve tested it on 8.5. It’s a custom UI extension, though, so test it in a lower environment first and retest after patches.

If you’d rather have the requester deal with the violations directly, instead of a workgroup picking them up later, this might suit you better than the Run Rule. Feel free to PM me if you’d like the source code. I’ll also publish it here in a separate article tomorrow, with the full code and an explanation of how it works.