hubblo-org / cabestan

Gather and normalize ICT inventory data from multiple sources, to enable automation of ICT carbon and environmental impacts (LCA-inspired) assessments.
Apache License 2.0
13 stars 2 forks source link

Microsoft Graph scanner #4

Open da-ekchajzer opened 2 years ago

da-ekchajzer commented 2 years ago

Problem

As an asset manager I want to use cabestan to retrieve the company's Microsoft Office 365 usage data and map connected devices from the Microsoft Graph API.

Solution

Microsoft provides a Mircrosoft Graph SDK to access the graph API. Doc : https://docs.microsoft.com/en-us/graph/sdks/sdks-overview

Service usage in AD (active directory)

Microsoft graph reports : https://docs.microsoft.com/en-us/graph/reportroot-concept-overview Microsoft's user resource : https://docs.microsoft.com/en-us/graph/api/resources/users?view=graph-rest-1.0

Devices in this AD (active directory)

Doc : https://docs.microsoft.com/en-us/graph/api/resources/device?view=graph-rest-1.0

We could use Microsoft API to list devices on an active directory