How this policy works
When processing a request to deprovision a user, Active Roles uses this policy to determine whether to schedule the deprovisioned user account for deletion. When scheduled for deletion, a user account is permanently deleted after a certain time period, referred to as a retention period.
A policy configured to delete user accounts specifies the number of days to retain deprovisioned user accounts. With such a policy, Active Roles permanently deletes a user account after the specified number of days has passed since the user was deprovisioned.
A policy can be configured not to delete user accounts. When applied at a certain level of the directory hierarchy, such a policy overrides any other policy of this category applied at a higher level of the directory hierarchy.
Let us consider an example to clarify this behavior. Suppose you configure a policy to delete accounts and apply that policy to a certain container. In general, the policy is passed down from parent to child containers, that is, the policy applies to all child containers beneath the parent container, causing Active Roles to delete deprovisioned user accounts in each container. However, if you configure a different policy not to delete accounts and apply that new policy to a child container, the child container policy overrides the policy inherited from the parent container. Active Roles does not delete deprovisioned user accounts in that child container or any container beneath that child container.
One more option of this policy is intended for domains where Active Directory Recycle Bin is enabled. The policy can be configured so that once a user account is deprovisioned, the account is moved to Recycle Bin (which effectively means that the account will be deleted immediately, without any retention period). Moving deprovisioned user accounts to the Recycle Bin may be required for security reasons, as an extra security precaution. The Active Directory Recycle Bin ensures that the account can be restored, if necessary, without any loss of data. Active Roles provides the ability to un-delete and then un-deprovision user accounts that were deprovisioned to the Recycle Bin.
How to configure a User Account Permanent Deletion policy
To configure a User Account Permanent Deletion policy, select User Account Permanent Deletion on the Policy to Configure page in the New Deprovisioning Policy Object wizard or in the Add Deprovisioning Policy wizard. Then, click Next to display the Deletion Options page.
Figure 94: Deletion options
On this page, you can choose whether you want the policy to schedule deprovisioned user accounts for deletion, and specify the number of days to retain deprovisioned user accounts.
First, select one of these options:
- Click Do not automatically delete the object if you want the policy not to delete deprovisioned user accounts.
- Click Delete the object after retention period if you want the policy to schedule deprovisioned user accounts for deletion.
- Click Delete the object to Active Directory Recycle Bin immediately if you want the policy to move deprovisioned user accounts to Recycle Bin.
If you select the second option, you must specify a number of days in the box beneath that option. Once a user account has been deprovisioned, and the specified number of days has passed, the policy causes Active Roles to delete the user account in Active Directory.
If you select the third option, you should apply this policy to domains that have Active Directory Recycle Bin enabled; otherwise, the policy will have no effect. With this option, once a user account has been deprovisioned, the policy causes Active Roles to delete the user account immediately. In a domain where Active Directory Recycle Bin is enabled, this deletion merely means that the account is marked as deleted and moved to a certain container from which it can be restored, if necessary, without any data loss.
Steps for configuring a User Account Permanent Deletion policy
To configure a User Account Permanent Deletion policy
- On the Policy to Configure page, select User Account Permanent Deletion, and then click Next.
- On the Deletion Options page, do one the following, and then click Next:
- Click Do not automatically delete the object if you want the policy not to delete deprovisioned user accounts.
- Click Delete the object after retention period if you want the policy to schedule deprovisioned user accounts for deletion. Then, in Retention period (days), specify the number of days to retain the deprovisioned user account before it is deleted.
- Click Delete the object to Active Directory Recycle Bin immediately if you want the policy to move deprovisioned user accounts to Recycle Bin.
Click Next.
If you select the third option, you should apply this policy to domains that have Active Directory Recycle Bin enabled; otherwise, the policy will have no effect. With this option, once a user account has been deprovisioned, the policy causes Active Roles to delete the user account immediately. In a domain where Active Directory Recycle Bin is enabled, this deletion merely means that the account is marked as deleted and moved to a certain container from which it can be restored, if necessary, without any data loss.
- On the Enforce Policy window, you can specify objects to which this Policy Object is to be applied:
- Click Add, and use the Select Objects dialog box to locate and select the objects you want.
- Click Next, and then click Finish.
Scenario: Deleting deprovisioned user accounts
This scenario describes how to configure a policy so that Active Roles permanently deletes deprovisioned user accounts after the 90-day retention period.
To implement this scenario, you must perform the following actions:
- Create and configure the Policy Object that defines the appropriate policy.
- Apply the Policy Object to a domain, OU, or Managed Unit.
As a result, after deprovisioning a user account in the container you selected in Step 2, Active Roles retains the deprovisioned account for 90 days and then it deletes that account.