Hello Remco,
Yes, this is possible. For this purpose, you can use a certain property that will serve as a flag indicating whether it is necessary to create a mailbox. You can use one of Adaxes virtual properties that can store boolean (true/false) values, for example, CustomAttributeBoolean1. such properties are not stored in Active Directory, but you can use them as any other properties of AD objects. You can add the property to the Web interface page for creating users. The property will be displayed as a checkbox on that page.
When creating a user, with the help of the property, users will specify whether it is necessary to create a mailbox. Then, a Business Rule triggered after creating a user will create a mailbox for the user only if the property is set to True.
Also, since a name like CustomAttributeBoolean1 will not tell much to your users about the meaning and the function of the property, you can give it your own name.
To implement such a solution:
I. Add a virtual boolean property to the Web Interface page for creating users
For information on how to do this, see step 6 in Customize Forms for User Creation and Editing.
II. Configure a Business Rule for creating mailboxes
For information on how to create such a Business Rule, see the Automate Exchange Mailbox Creation for New Users Tutorial. To create mailboxes only for users who have the virtual property set to True, on step 5 of the Tutorial, do the following:
- Right-click the action and click Add Condition.
- Select the If <property> <relation> <value> condition.
- Expand the <property> drop-down list.
- Select Show all properties.
- Select the virtual property that you chose to use, for example, CustomAttributeBoolean1.
- Select equals and True.
- Click OK.
Also, you can automatically configure the mailbox after creation, if necessary.
III. Assign your own name to the virtual property
For information on how to do this, see Customizing Display Names for AD Properties.