You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Password Reset On User Role Change Event Handler
2
+
3
+
This asset contains the code and deployment items for an event handler that automatically triggers a password reset flow for a user once a user's role attribute changes.
4
+
5
+
Note that by "user role" we are reffering to the user's role attribute (also known as "employee type") in this context, not to changes in a user's membership to any particular OIG role.
6
+
7
+
Developed on and compatible with OIG 11g R2 PS3 and above.
8
+
9
+
Review Date: 28.10.2024
10
+
11
+
# When to use this asset?
12
+
13
+
When there's a need to provide or demonstrate the functionality described above or something similar, which can be adapted from the provided code.
14
+
15
+
Note that password resets for lifecycle events involving other attribute value changes, such as for example a user's parent Organization, can be easily retrofitted based on the provided sample.
16
+
17
+
# How to use this asset?
18
+
19
+
## Building and deployment
20
+
21
+
Here's a short build and deployment checklist:
22
+
23
+
1. Generate a jar file containing the sample code.
24
+
2. Copy the jar file under the `lib` directory of the provided `plugin` folder structure and create a zip file with the following root structure:
25
+
- lib
26
+
- META-INF
27
+
- plugin.xml
28
+
3. Register the plugin zip file to an OIG environment using OIG's plugin registration utility script.
29
+
30
+
Please see the useful link below for detailed build and deployment steps.
31
+
32
+
## How do I execute the event handler?
33
+
34
+
Once registered the code will be run automatically when user lifecycle events occur in the system. Note that password resets will be triggered only when the target attribute value changes (in this sample, the user's role), during modify events.
0 commit comments