Hello,
To resolve the issue, you will need to create a Home Page Action where an IT member will be able to set the date and job title, and also a Scheduled Task that will actually move the user to the specified group on the date set via the Home Page Action.
Probably it will be more convenient to add position name on which group membership depends instead of selecting the group to move the user to. We recommend storing the position name, until it is actually assigned to the user on the target day, in a custom attribute. Such attributes are not stored in AD, but can be used the same as any other attributes of AD objects. You can use one of the attributes that is used for storing text (string) values, e.g. CustomAttributeText1. For a date, you need to use an attribute that allows storing date/time values, e.g. CustomAttributeDate1.
Creating a Home Page Action
To create a a Home Page Action that allows specifying a new job title and the date when to assign it:
- Launch the Adaxes Web Interface Configuration Tool on the computer, where the Web Interface is installed.
- On the General tab, click Configure Home Page Actions.
- Click Add.
- Select Modify User.
- Follow instructions of the wizard. On the Form Customization page, select Use customized form and click Customize Form.
- Remove all sections except General and remove all fields.
- To add properties that will be modified by an IT member (job title and date), click Add under the Section fields section.
- Select the Show all properties checkbox and select the CustomAttributeText1 property. Click OK.
- Click Add again.
- Select the Show all properties checkbox and select the CustomAttributeDate1 property. Click OK.
- Finish creating the action.
Creating a Scheduled Task
The Scheduled Task will move the user to the necessary group on the date specified in the CustomAttributeDate1 attribute. To create it:
-
Create new Scheduled Task.
-
Add an action that will add the user to a group depending on the job title:
- On the Actions page, click Add Action.
- Select Add the User to a group and click Select Group.
- Select the group to move the user to. Click OK.
- Click Add Condition.
- Select the If <property>< relation ><value> condition type.
- Specify If CustomAttributeText1 equals and enter a job title, for example, Marketing Manager. Then, click OK.
Note: you can use the If CustomAttributeText1 contains condition to enter a part of the job title.
- Click Add Condition again to specify when the task will be executed.
- Select the If <property> <relation> <value> condition type.
- Specify IfCustomAttributeDate1 less or equal.
- Click the associated Edit button.
- On the Generate date tab, select Current date/time. Click OK twice.
- You also need to add a condition that will check that the CustomAttributeDate1 attribute is not empty. To do so, click Add Condition.
- Select the If <property> <relation> <value> condition type.
- Specify IfCustomAttributeDate1 is not empty.
- Now you need to add an action to clear the CustomAttributeDate1 attribute. This way each user will be processed only once. To do so, click Add Action.
- Select Update the user and click Add.
- In the Property to modify field, select CustomAttributeDate1.
- Select Remove property. Click OK twice.
-
Now, add an action that will remove the user from the group they belong to.
- Click Add action to a new set.
- Select Remove the User from a group and click Select Group.
- Select the group to remove the user from and click OK.
- Click Add Condition.
- Select the If <property>< relation ><value> condition type.
- Specify If CustomAttributeText1 does not equal and enter a job title, for example, Marketing Manager. Then, click OK.
Note: you can use the If CustomAttributeText1 does not contain condition to enter a part of the job title.
- Click Add Condition to specify when the task will be executed for a user.
- Select If <property> <relation> <value> condition type.
- Specify If CustomAttributeDate1 less or equal.
- Click the associated Edit button.
- On the Generate date tab, select Current date/time. Click OK twice.
- Click Add Condition again.
- Select the If <property> <relation> <value> condition type.
- Specify If CustomAttributeDate1 is not empty and click OK.
You should get something like this:
-
Repeat steps ii-iii for each job title.
-
Finish creation of the Scheduled Task.
If you have many groups, you can use a script in your Scheduled Task as described in the following tutorial: http://www.adaxes.com/tutorials_Automat ... cripts.htm.
The script you need is Example 1.
You can simplify entering data into the CustomAttributeText1 property by creating a drop-down list of possible values to select from, as described in the following tutorial: http://www.adaxes.com/tutorials_Simplif ... tments.htm.