Skip to main content

Connector API calls

The Microsoft 365 connector makes several API calls to Microsoft Graph API and Windows Azure Active Directory Module for Windows PowerShell (MSOnline) to retrieve data.

Microsoft Graph API

API call descriptions.

Authentication token

Uses the POST operation to retrieve an auth token used in other Graph API calls.

URI: https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token

For more information, refer to Microsoft Graph docs .

Organization

Uses the GET operation to retrieve information about M365 organization (tenant).

URI: https://graph.microsoft.com/v1.0/organization

For more information, refer to Microsoft Graph docs .

Users

Uses the GET operation to retrieve information about M365 users.

URI: https://graph.microsoft.com/v1.0/users

For more information, refer to Microsoft Graph docs .

Subscribed SKU

Uses the GET operation to retrieve information about a service SKU company is subscribed to.

URI: https://graph.microsoft.com/v1.0/subscribedSkus

For more information, refer to Microsoft Graph docs .

User activity

Uses the GET operation to retrieve information about the user activity in the last 180 days.

URI: https://graph.microsoft.com/v1.0/reports/getOffice365ActiveUserDetail(period='D180')

For more information, refer to Microsoft Graph docs .

MSOnline

Cmdlet function descriptions.

Initiate connection

Attempts to initiate a connection to Azure Active Directory.

Cmdlet: Connect-MsolService

For more information, refer to Microsoft Powershell docs .

Get subscriptions

Gets all the subscriptions that the company has purchased.

Cmdlet: Get-MsolSubscription

For more information, refer to Microsoft Powershell docs .