在 Active Directory 中查找用户的经理记录 [英] Finding a user's manager record in Active Directory

查看:27
本文介绍了在 Active Directory 中查找用户的经理记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在使用 Active Directory,尝试查找用户经理的 SamAccountName 和电子邮件.

Using Active Directory, am trying to find the SamAccountName and email of the user’s manager.

我通过搜索 sAMAccountName = DomainAccount 在 AD 中找到登录用户.然后我检索 manager 属性,它看起来像这样,例如:

I find the logged on user in the AD by search where sAMAccountName = DomainAccount. I then retrieve the manager property, which looks like this, for example:

CN=Doe, Jane E.,OU=Employees,OU=Users,OU=Detroit,OU=United States,DC=na,DC=gmc,DC=gmc,DC=com"

我如何使用这个假定的密钥来查找此人的用户记录?我将匹配哪个字段?

How can I use this presumed key to find the user record for this person? What field would I match on?

推荐答案

如果我没记错的话,那是他们的专有名称,这意味着您可以将其用作他们个人资料的直接参考

If I remember correctly, that is their Distinguished Name, which means you can use it as the direct reference to their profile

LDAP://CN=Doe, Jane E.,OU=Employees,OU=Users,OU=Detroit,OU=United States,DC=na,DC=gmc,DC=gmc,DC=com

我还认为,如果配置文件存在,它会返回该名称.如果它已被删除,那么我相信它会运行某种 GUID(基于内存 - 这可能不正确)

I also think it will return that name if the profile exists. If it has been deleted then I believe it runs a GUID of some sort (based on memory - this might be incorrect)

这篇关于在 Active Directory 中查找用户的经理记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆