1. Create a script module that contains this information:
# *****************************************************************************
# 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 MERCHANTBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE
#
# IF YOU WANT THIS FUNCTIONALITY TO BE CONDITIONALLY SUPPORTED,
# PLEASE CONTACT QUEST PROFESSIONAL SERVICES OR CUSTOM DEVELOPMENT.
function onPostDeprovision($Request)
{
if ($Request.Class -ne "user") { return }
$action = $Request.AddDeprovisioningReportRecord()
$action.Name = "Add user to groups"
$Group = "GROUPNAME"
Add-QADGroupMember -identity $Group -Member $Request.GUID
$GroupName = get-qadgroup -identity $Group -DontUseDefaultIncludedProperties -IncludedProperties displayName
$action.AddListItem("Added to: $GroupName", "")
$action.IsSuccess = $true
}
2. Modify the distinguished name in the above script for $Group.
3. After you implement the script policy, just add it to your de-provisioning policy
Modify Groupname so that it is the cn (or name) attribute value.