Variables Available to Role Assignment Scripts
onUnassignment event scripts specify what should happen to attributes that are affected by role assignments when those assignments are applied to a user, or removed from a user.
These scripts have access to the following variables:
The standard assignment scripts,
noOp.js have access to all the variables in the previous list, as well as the following:
Role assignment scripts must always return
targetObject, otherwise other scripts and code that occur downstream of your script will not work as expected.