Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用单个 PrincipalSearcher 调用搜索多个用户名。也许通过提供请求的用户名的“或”作为过滤条件?
是的,可以使用简单的 LDAP 查询来搜索多个用户名。我不确定您到底想做什么,但您应该能够执行以下操作
(|(userPrincipalName=userA@domain.com)(userPrincipalName=userB@domain.com))