Request an MS365 Refresh Token

To log in to Microsoft Exchange, you need what is known as an access token. This is automatically generated when you sign in to Microsoft Exchange. For security reasons, access tokens are valid for only about 1 hour. A new access token will then be generated automatically.

This is done using what is known as a refresh token. You must manually request the refresh token in the Microsoft Exchange Connector on the "Exchange Account" tab for the user you used when creating the data source ().

You must also do this for the additional users you use in applications and processes ().

The refresh token is stored in the MediaGateway. It is valid for 3 months. After that, it must be requested again manually.

Step-by-Step

To request an MS365 refresh token, follow these steps:

  1. Launch the "Integration" module.

  2. Navigate to "Consume Data > Connector for Microsoft Exchange."

    The data source you created is displayed in the right-hand pane.

  3. Select the data source you created.

  4. Press ENTER or right-click and select "Edit" from the context menu.

    The "Edit Data Source" dialog box appears.

  5. Go to the "Exchange Account" tab.

    When creating a new data source, the dialog box appears as follows:

  6. Click "Request MS365 Refresh Token."

    The "Request MS365 Refresh Token" dialog box appears.

  7. Copy the code shown to the clipboard and paste it into the Microsoft login page ().

    You can also open the Microsoft sign-in page in your browser ().

  8. Click "Next."

    The following dialog box appears.

  9. Enter the email address you use to sign in to Microsoft Exchange.

  10. Click "Next."

    The following dialog box appears.

  11. Enter the password.

  12. Click "Sign In."

    The following dialog box appears.

  13. Click "Next."

    The following dialog box appears.

    The refresh token is generated and stored in the MediaGateway.

    You will be automatically returned to the dialog box

    The text "Request MS365 Refresh Token" appears in gray and can no longer be clicked.

    The MS365 refresh token is stored in the media gateway and is used to generate access tokens.

    The MS365 refresh token is valid for 90 days. After that, you must regenerate it using the method described here.

Request a refresh token for additional users

Step-by-Step

To request a refresh token for additional users, follow these steps:

  1. Go to the "Additional Users" tab.

  2. Click the " " icon.

    The "Additional Users" dialog box appears.

  3. Select an Intrexx user and assign a Microsoft Exchange user to them.

  4. Click "Request MS365 Refresh Token."

    Now follow the steps above starting with Click "Request MS365 Refresh Token." described.

More Information

Connector for Microsoft Exchange - Authentication - OAuth2