question

EisenhaurLiam-9444 avatar image
0 Votes"
EisenhaurLiam-9444 asked SaurabhSharma-msft commented

Nuget Package for Office 365 Management API

I a writing a console app that needs to use the Office 365 Management API permissions from Azure Active Directory. I have used the Microsoft.Graph nuget package previously but haven't been able to figure out if there is a nuget package for Office 365 Management or what it might be called.

azure-active-directoryazure-ad-graphazure-ad-app-development
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SaurabhSharma-msft avatar image
0 Votes"
SaurabhSharma-msft answered SaurabhSharma-msft commented

@EisenhaurLiam-9444 There are not nuget packages or sdk available currently for using Office Management API. You need to call the rest api endpoint to achieve your goal. If you are using C# then you can get the access token using MSAL and then you can use the API. Please refer to the documentation for details. Here is an external blog which can you also refer.

You can also provide this as a feedback to O365 UserVoice so that community can upvote and products team can include in future releases.


Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@EisenhaurLiam-9444 Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

0 Votes 0 ·
alfredorevilla-msft avatar image
0 Votes"
alfredorevilla-msft answered

There's not nuget package for Office Management API but you can develop your own solution using the HttpClient class, the Microsoft.AspNet.WebApi.Client nuget package and for authentication Azure.Identity or Microsoft.Identity.Client. All together with the Office 365 Management Activity API reference.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.