Check Microsoft 365 licenses


Checks whether the user has a valid Microsoft 365 Exchange license. In the payload an on behalf of user flow access token is used. To retrieve that from Microsoft use the on behalf of authentication flow as explained here

When retrieving the tokens from Microsoft the following additional scope is required:

api://community.xelion/xelion-connector/Openid.Login

Resource

POST /me/microsoft/exchange/license/check

Parameters

None

Response

Object containing Microsoft 365 Exchange license information.

Context

Authorization

User

Errors

Example

Request
POST https://xelion.nl/api/v1/master/me/microsoft/exchange/license/check
Payload
{
    "accessToken": "myOnBehalfOfAccessToken"
}
Response
{
    "object": {
        "valid": true
    },
    "links": [
        {
            "rel": "self",
            "href": "https://example-host.org/api/v1/master/me/microsoft/exchange/license/check",
            "method": "POST"
        }
    ]
}