Summary: This article contains step-by-step instructions on how to add columns with user's manager cn and manager's employeeID attributes to AD Users report.
Applies to: 7.x and later
ID: KB20210205-1
Configuration:
- In Admin Console click +New and create a new AD Users rule.
- Specify Limit scope to this Domain or OU - select domain or OU.
- In Properties to display add the expressions below. They should be comma-separated.
- For user's manager cn:
Manager~Manager~(ExtractNameFromDN `$_.Manager)
- For user's manager EmployeeID:
ManagerEmpld~Manager EmployeeID~if(-not [string]::IsNullOrWhiteSpace(`$_.Manager)){ "`$((Get-ADUser -Identity `$_.Manager -Properties employeeID).employeeID)"}
- For user's manager cn:
- Click Save Changes
- Run the AD Users rule to get the report with the user's manager cn and employeeID columns.
Note: If you use only the manager's emloyeeID expression Manager attribute should be mentioned either in Properties to display or System properties settings of AD Users rule. Expression for manager's cn can also be counted as mentioning Manager attribute in Properties to display.
Comments
0 comments
Please sign in to leave a comment.