When working with account templates we cannot use attributes names from the Identity Manager User like %MANAGER%.
We are limited to rule strings as per this document, which contains a full list of template rules:
Attributes and rule strings in Account templates
Please note that when the account template rules are evaluated, IM Provisioning Server uses the attributes of a Global User (i.e. provisioning user), and not an IM User (i.e. a corporate user stored in the IM User Store).
We recommend to use custom Global User fields to generate Manager attribute.
The following approach can be used for the Manager AD attribute, and in similar scenarios for any endpoint.
- Enable custom Global User attribute:
- Launch Provisioning Manager application
- System > Global Properties > Custom User Fields
- Select one of the custom fields, that haven't been configured yet, for instance 01, then push 'Edit name'
- Provide a value, for instance 'Manager ID' and apply the configuration
- Map a corporate user attribute to the above configured custom Global User attribute:
- Open IM management console
- Environments > select your environment > Advanced Settings > Provisioning > Attribute Mappings
- Select proper corporate user attribute in the 'User Attribute' drop-down box (in this example "%MANAGER%") and proper custom attribute in the 'Provisioning Attribute' drop-down box ("%CUSTOM_FIELD_01%")
- Push 'Add', then 'Save', and then restart the IM environment
- Modify AD account template. It's not possible to edit "Manager" field in IM user console, Provisioning Manager should be used:
- Launch Provisioning Manager
- Roles > select 'Active Directory Account Template in the 'Object type' drop-down box > Search
- Select account template > Properties > Organization
- Provide the proper rule in the Manager > DN
AD account attribute under question (eTADSmanager) must contain a DN of a manager account.
Proper rule string should be something like this:
CN=%UCU01%,CN=Users,DC=MYCompany,DC=com
- Apply the change
