# Create an OAuth Application

The Exchange OData Connector retrieves information through the Microsoft Graph API.

To use the Microsoft Graph API, you must go to the Azure portal and register an application to represent the connector. Full instructions about how to create an application are available in the Microsoft documentation.

The Exchange OData Connector has the following requirements:

- Register an application > Supported account types. Create a "Multitenant" application that can be used by accounts in any organizational directory.
- Register an application > Redirect URI. Configure the redirect URI to match the value that you use with the OAuth configuration tool (by default, `http://localhost:7878/oauth`). The "type" of the redirect URI should be "Web".
- Client ID and Secret. After you register the application, make a note of the Application (client) ID. Then, go to the Certificates & secrets page and generate a client secret. You will need these to configure OAuth authentication.

- API Permissions. The connector requires the following delegated permissions for the Microsoft Graph API.

  - `Calendars.Read`
  - `Directory.Read.All`
  - `Group.Read.All`
  - `Mail.Read`
  - `offline_access`
  - `User.Read`
  - `User.Read.All`
  - `User.ReadBasic.All`

  To retrieve information for an organization, rather than a single user, the connector requires the delegated permissions listed above and the following application permissions:

  - `Calendars.Read`
  - `Directory.Read.All`
  - `Group.Read.All`
  - `Mail.Read`
  - `User.Read.All`

_FT_HTML5_bannerTitle.htm