How to import manager attribute from Active Directory
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Users from Active Directory (AD) are imported into Insight as objects correctly but without Manager attribute by default. This KB is to explain how to map the Manager attribute as an Insight object as well as a Jira user.
Example
An AD user, Maurice Moss has a manager, Jen Barber. Both of them are imported into Insight as an object using predefined structure and configuration. However, Jen is not associated with Maurice as his manager in the object. The expected outcome is to have Jen shown as Maurice's manager as an Insight object, or Jen's Jira user profile in the manager attribute.



Solution
Scenario 1 - Import manager attribute as an Insight object
In the object type which AD users are imported into, add a new attribute for Manager with type Object and choose the object type accordingly.
In the import configuration, locate the object type mapping for the AD users and map the data locator "manager" with the attribute created from the previous step. An IQL is needed as the attribute is referencing to another object. If you are using predefined configuration, you may use the IQL below as it is.
1
distinguishedName = ${manager}
Run a synchronization and verify if the Manager attribute is populated with the right manager object.
Scenario 2 - Import manager attribute as Jira user
In the object type which AD users are imported into, add a new attribute for Manager with type User.
In the import configuration, locate the object type mapping for the AD users and map the data locator "manager" with the attribute created from the previous step.
After adding the attribute mapping, edit the row by clicking on the gear icon on the far right > Configure. Add the following to the Regular expression field and click Update.
1
CN=(.*),OU*
Or:
1
CN=([^,]*),.*
Run a synchronization and verify if the Manager attribute is populated with the right Jira user.
Troubleshooting
If the manager attribute is not populated with either or both the solution above, perform the steps below and contact support if needed.
Add another attribute to get the text value of the imported manager data.
In the import configuration, map the attribute with the data locator "manager".
Run a synchronization and verify if the new manager attribute is populated. An expected value is the full DN of the manager which looks like
CN=Jen Barber,OU=Employees,DC=michin,DC=internal
.Verify if the user object that is expected to be shown as the manager has the identical DN in the distinguishedName attribute.
Was this helpful?