How to pop-up a message(need justification) when we try to disable a role

Hi All,

we have an requirement, when we try to disable a role by clicking on the Disable Check Box in the role editor page, that time we need to pop-up a message(justification needed) in the another field need put comment that is mandatory.
how can we acheive this ?? without plugin?

Thanks in advance…!

I doubt if there is an OOTB solution for this, but I would suggest you to look into Role Workflows: Role Modeler - Impact Analysis and Role Modeler - Owner Approval, which gets triggered when you create/update/delete a Role.

Guess we can customize this workflow suitable for your requirement.

You can look into Global Settings → IdentityIQ Con1figuration → Roles → Business Processes

2 Likes

Hey Krishna, This is a brilliant idea! Would you recommend adding a step which will assign a (form) workitem to the owner to add the comments in this case? or is there a better way to do it?

1 Like

I don’t think if there are simple prompts in IIQ, everything is a workitem rite, feel free to correct me. We can add 1 extended attribute (comments) in Bundle.

When someone disable the Role, trigger the workflow, assign form (workitem) to the requester asking for Justification, post that only it will disable the Role and update the extended attribute.

1 Like

Yeah correct! there is no automatic prompt in IIQ without the help of plugins, extended attribute solution seems like the most logical one. Its a very interesting use case, thanks for bringing forth this idea, its worth a test in the local environment. :slight_smile:

1 Like

This might be done using javascript.

As a small PoC, place the following javascript in the file <identityiq-root>/scripts/custom.js:

$(document).ready(function(){
  if(window.location.href.indexOf("roleEditor") > -1) {
    $("#roleOptionsTable tbody tr:last td:last input").on("change", function(){
      alert("Disable changed");
    });
  }
});

Be aware if you have additional/custom attributes for roles/bundles this PoC might fail.

– Remold

3 Likes

With the extended attribute for the justification (as Krishna mentioned) it might also be possible to use javascript to block saving the form when it is disabled and the justification is not filled.

– Remold

2 Likes

Thank you @Remold let me try.

Thanks for the inputs @aishwaryagoswami , let me try.

Thank you for the inputs @MVKR7T, let me try.

Can you let us know if the Javascript would be enough (and if it is working). If not the Business Process (Workflow) can be adjust to validate the input (disabled = true and justification != empty).

– Remold

Hello @Remold, awaiting for the client response about javascript, will let u know once i get response.

Hi @MVKR7T , @aishwaryagoswami , thank you for the inputs. @Remold the script is working fine. it is giving pop-up.

Now, Client wants when we click on the Disable Check Box in the role editor page, we need make comment field(extended attribute) Mandatory/Required to put the comments. if we click on disable then only we need make mandatory otherwise not required.

how can we do this??

thanks in advance…!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.