Adaxes allows you to assign a default value to any property of user accounts, including the Account Expires property that determines whether a user account will expire and when. If you configure the default account expiration date, it is automatically filled into the Account Expires field on the user creation form. If a user is created using a script or during data import, and the Account Expires property is not specified, the account expiration date for the new user is set to the default value.
To set default values for Active Directory object properties, you need to use Property Patterns. In this tutorial, you will learn how to create a Property Pattern to assign a default value for the Account Expires property.
Launch Adaxes Administration Console, right-click your Adaxes service, point to New and click Property Pattern.
Enter a name for the new Property Pattern and click Next.
Select User and click Next.
On the Configuration page, click Add and select Account Expires in the drop-down list.
Click the button embedded in the Default value field.
Specify how to calculate the account expiration date. For example, to set user accounts to expire in 30 days after creation, specify plus - 30 - days.
When finished, click OK and then click Next.
To define the scope of activity for the Property Pattern, click Add.
In the Activity Scope dialog, select the following items:
All Objects - select to apply the Property Pattern to all users in all domains managed by Adaxes.
Specific Domain - select to apply the Property Pattern to all users in a domain.
OU or Container - select to apply the Property Pattern to users in an Organizational Unit or container.
You can exclude specific Organizational Units and domains from the activity scope of the Property Pattern. For example, if you've assigned the Property Pattern over the whole domain, but do not want it to apply to a specific Organizational Unit, you can exclude the Organizational Unit from the activity scope. To exclude an object, select the Exclude option in the Assignment Options dialog box.
Click the object you want to exclude.
In the Assignment Options dialog, select the Exclude option.