简体   繁体   中英

Office365 - List Users using C#

I am able to retrieve all the users of Office365 with the help of PowerShell.

But I want to retrieve those users with the help of C# in Visual Studio without using the Azure AD like that.

And the users are from Office365 not from specific like Outlook or SharePoint.

So how to do this from my client directly using C# like in PowerShell?

You can use the graph API . With an authenticated user you could get a list of all users within a tenant with a simple get request like https://graph.microsoft.com/v1.0/users .

To easier access this data from C# you can use the corresponding NuGet package . The documentation about the usage and the code itself can be found at GitHub .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM