【问题标题】:How to retrieve all Office 365 users in the same domain with C#?如何使用 C# 检索同一域中的所有 Office 365 用户?
【发布时间】:2014-10-06 22:35:32
【问题描述】:

Microsoft 提供了一个 PowerShell 命令Get-Msoluser 来检索所有 Office 365 用户。我不希望我的应用程序绑定到 PowerShell,所以我想编写一个 C# 函数来完成这项工作,不幸的是,关于这个主题的信息并不多。

我查看了Office 365 APIs Preview 文档,没有这样的功能;我也查看了SharePoint Client Object Model,也没有这样的事情。

这可以在没有 PowerShell 的情况下完成吗?有没有 SDK 可以做到这一点?

【问题讨论】:

    标签: c# powershell sharepoint azure office365


    【解决方案1】:

    是的,您可以使用Azure AD Graph Client Library。该链接中还有几个示例将向您展示如何检索您的用户。

    此库可作为 nuget 包使用。 https://www.nuget.org/packages/Microsoft.Azure.ActiveDirectory.GraphClient/1.0.2

    【讨论】:

    • 谢谢,我去看看。
    • 对于此解决方案,用户必须注册 Windows Azure。
    猜你喜欢
    • 1970-01-01
    • 2017-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多