I want to get the available users into a OU and the query i have written.
ou=IT Center,dc=xxx,dc=xxx,dc=com?distinguishedName?sub?(mail=$issue.reporter.getEmailAddress())
Output: CN=Udayeswaran NAGARAJAN,OU=Users,OU=XYZ,OU=IN,OU=IT Center,DC=xxx,DC=xxx,DC=com
But I really need only OU=XYZ.
Can anybody help me or tell me which must be the correct query?
Thanks in advance.
Regards.