【问题标题】:How is Windows checking its users are online?Windows 如何检查其用户是否在线?
【发布时间】:2020-02-11 07:40:37
【问题描述】:

我在 c# 中使用ActiveDirectory 库来提取用户和组详细信息等。

using System.DirectoryServices;
using System.DirectoryServices.ActiveDirectory;
using System.DirectoryServices.AccountManagement;

我在 Google 上搜索了如何查找用户是否在线,但显然无法使用 ActiveDirectory 执行此操作,所以我想知道,Windows 如何查看谁在线?例如在 Outlook、SharePoint 或 Skype 上,我们会看到用户的状态(红色、绿色、黄色 - 忙碌、可用、离开等)

有没有办法根据我从 ActiveDirectory 获得的任何信息来构建?

【问题讨论】:

  • 在 Asp.Net 中吗?
  • 是的,asp.net 使用框架 4.7.2
  • “Presence”是您正在寻找的术语,不幸的是它在不同的地方分别实现。 presence API for Teams 最近进入了测试阶段。

标签: c# windows active-directory


【解决方案1】:

例如在 Outlook、SharePoint 或 Skype 上,我们会看到用户的状态(红色、绿色、黄色 - 忙碌、可用、离开等)

如果您的组织使用 Skype for Business,那么它就是这样做的。只要用户打开并登录了 Skype for Business,他们就会在线显示给打开并登录了 Skype for Business 的其他人。Outlook 使用来自 SfB 的状态。

要验证这一点,您可以关闭 SfB,然后您会看到 Outlook 不再向您显示其他人的状态。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-01-16
    • 1970-01-01
    • 2021-11-23
    • 1970-01-01
    • 1970-01-01
    • 2018-03-27
    • 2014-12-28
    相关资源
    最近更新 更多