0

I am new to openidm and trying to explore options to remove roles from user once user status changes to terminated.

Is there any out of box feature available in Forgerock to do this ? Can you please help how to implement this solution

1 Answers1

0

You can write a JavaScript that you can add to postUpdate (or onUpdate, but this will block the patch call during the removal) of the managed object. If you detect the change of the user status to the terminated state, you can query the roles the user is in and then loop over those to delete the user from each.

Some resources that might help you with listing roles and removing them:

Jonas Heinisch
  • 363
  • 2
  • 12