DESCRIPTION
This script solution demonstrates how to enforce the use of the "Generate Password" function when creating or modifying a user, or resetting user password. This is done by preventing from manaully typing in passwords
Note This code may use functions from the Active Roles Script Policy Best Practices. Please, follow the link to obtain instructions and code for those functions.
SCRIPT
'*********************************************************************************
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
' WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
' IF YOU WANT THIS FUNCTIONALITY TO BE CONDITIONALLY SUPPORTED,
' PLEASE CONTACT ONE IDENTITY PROFESSIONAL SERVICES.
'*********************************************************************************
Option Explicit
'===========================================================================
' onGetEffectivePolicy
'===========================================================================
Sub onGetEffectivePolicy(Request)
If (LCase(Request.Class) <> "user") Then Exit Sub
Call Request.SetEffectivePolicyInfo("edsaPassword", EDS_EPI_UI_AUTO_GENERATED, True)
End Sub ' onGetEffectivePolicy
'***** END OF CODE ***************************************************************