Skip to main content

Connector API calls

The Microsoft 365 connector does 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

    Refer to Microsoft Graph docs for more information.

  • Organization

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

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

    Refer to Microsoft Graph docs for more information.

  • Users

    Uses the GET operation to retrieve information about M365 users.

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

    Refer to Microsoft Graph docs for more information.

  • 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

    Refer to Microsoft Graph docs for more information.

  • 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')

    Refer to Microsoft Graph docs for more information.

MSOnline

Cmdlet function descriptions.

  • Initiate connection

    Attempts to initiate a connection to Azure Active Directory.

    Cmdlet: Connect-MsolService

    Refer to Microsoft Powershell docs for more information.

  • Get subscriptions

    Gets all the subscriptions that the company has purchased.

    Cmdlet: Get-MsolSubscription

    Refer to Microsoft Powershell docs for more information.