Set Default Account Expiration Date for New Users


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.

The account expiration date can be calculated by adding a specified time interval to the current date (e.g. the current date plus 30 days).

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.


  1. 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.

  2. Select User and click Next.

  3. On the Configuration page, click Add and select Account Expires in the drop-down list.

  4. Click the button embedded in the Generate 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.

    Click OK.


    When finished, click OK and then click Next.

  5. 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.


    • Click OK.
  6. When done, click OK and then click Finish.
Open tutorial filtering

Got questions?
Support Forum