Disable a User Self-Care policy
Follow these steps to disable a specific User Self Care policy.
Steps
- Replace the mapping rule.
Replace the first mapping rule in the policy we want to disable with the following snippet .
/* * Disable this policy. */ success.setValue(false); page.setValue("/authsvc/usc/disabled.html");
A list of policies and their first mapping rule is shown as follows:
Policy Map rule name Account Create USC_CreateAccount_CollectEmail Lost ID USC_LostId_CollectEmail Lost Password USC_PasswordReset_CollectEmail
This snippet will cause the policy to stop and return the template page disabled.html when it is first accessed.
We can modify the mapping rules using the Mapping Rules page in the management UI at <appliance>/mga/mapping_rules.
- Add a new HTML template for the disabled page.
Add a new HTML template at <locale>/authsvc/usc/disabled.html. The following page is an example of such template.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- ********************************************************************* * Licensed Materials - Property of IBM * (C) Copyright IBM Corp. 2016. All Rights Reserved * * US Government Users Restricted Rights - Use, duplication, or * disclosure restricted by GSA ADP Schedule Contract with * IBM Corp. ********************************************************************* --> <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <TITLE>Policy Disabled</TITLE> <!-- /authsvc/usc/disabled.html --> <LINK REL="stylesheet" TYPE="text/css" HREF="/sps/static/styles.css"> <LINK REL="stylesheet" TYPE="text/css" HREF="/sps/static/usc.css"> <SCRIPT TYPE="text/javascript"> function goHome() { window.location.assign("/"); } </SCRIPT> </HEAD> <BODY> <DIV CLASS="header"> <DIV CLASS="prodname">IBM Security Verify Access - Policy Disabled</DIV> <SPAN CLASS="headerLogo"><DIV></DIV></SPAN> </DIV> <DIV CLASS="content"> <DIV CLASS="contentHeader"> <h1 CLASS="pageTitle">Policy Disabled</h1> <DIV CLASS="instructions">The administrator has disbled this policy.</DIV> </DIV> <DIV CLASS="pageContent"> <P>Return to the <A HREF="#" ONCLICK="goHome()">home page</A> to log in.</P> </DIV> </DIV> </BODY> </HTML>
We can add new template files using the Template Files page in the management UI at <appliance>/mga/template_files.
Parent topic: Disable and re-enabling a predefined User Self-Care policy