## Microsoft To Do integration Integrating Microsoft To Do with Frontegg allows your application to read and manage the signed-in user's task lists and tasks, including tasks shared with the user — all through Frontegg's integration layer using Microsoft OAuth 2.0 and the Microsoft Graph API. Prerequisites - A Microsoft account with access to the [Azure portal](https://portal.azure.com/) - An Azure Active Directory (Microsoft Entra ID) tenant ### Register an application in Azure #### Step 1: Go to App registrations Sign in to the [Azure portal](https://portal.azure.com/) and search for **App registrations** in the top search bar. Click **App registrations** in the results. ![App registrations page in Azure portal](/assets/microsoft-todo-1.a5daaa6c2adb1183b5ce84f3fc454f4cc06297009401c3a4267dea4f549d820f.1ce25488.png) #### Step 2: Register a new application Click **New registration** at the top of the page. Fill in the registration form: 1. Enter a name for your application (for example, `Frontegg Todo Integration`). 2. Under **Supported account types**, select **Accounts in any organizational directory (Any Microsoft Entra ID tenant — Multitenant)** for multi-tenant apps, or the appropriate option for your use case. 3. Under **Redirect URI**, select **Web** as the platform and enter: ``` https://YOUR_MCP_GATEWAY_URL/integration-callback ``` 4. Click **Register**. ![New application registration form with name, account type, and redirect URI filled in](/assets/microsoft-todo-2.028bc3c5408314f929238137d9a96bd4a198cac5019bdd095e160a7142ca0c8b.1ce25488.png) #### Step 3: Copy the Application (client) ID and Directory (tenant) ID After registration, you are taken to the application overview page. Copy both the **Application (client) ID** and the **Directory (tenant) ID** — you will need them when configuring the Frontegg portal. ![Application overview page with Application ID and Directory ID highlighted](/assets/microsoft-todo-3.caf6804b35747a53dc553fa723927bdaef1c3979f7597b80e7b7f19c5e6fcc96.1ce25488.png) ### Create a client secret #### Step 4: Go to Certificates & secrets In the left sidebar, click **Certificates & secrets**, then click **New client secret**. ![Certificates and secrets page with New client secret button highlighted](/assets/microsoft-todo-4.5ff9fec99e36ee275d8cdd96a6bd4a201898e38fb60f83143107604804a63723.1ce25488.png) #### Step 5: Add a description and expiry In the **Add a client secret** panel, enter a description (for example, `Frontegg Integration`) and choose an expiry period. Click **Add**. ![Add a client secret panel with description field filled in](/assets/microsoft-todo-5.6b0ed09ad537e8cf23961adefd629cd16b0b427d29a9b74178f65c1673d27448.1ce25488.png) #### Step 6: Copy the client secret value The new secret appears in the list. Copy the **Value** immediately — it is only shown once. After you navigate away, you cannot retrieve it again. Save your Client Secret now The Client Secret value is only displayed once. After you leave this page, you can only see the secret ID — not the value. Store the value securely before continuing. ![Client secret list showing the new secret with value blurred](/assets/microsoft-todo-6.4e80082defdfef9866f8aed2b767807daa05e6874ebc836bc7b6679f94fb0005.1ce25488.png) ### Configure API permissions #### Step 7: Go to API permissions In the left sidebar, click **API permissions**, then click **Add a permission**. ![API permissions page with Add a permission button highlighted](/assets/microsoft-todo-7.4ed58550f37b7cd81408c07b221518ebe1fbfdf2169c473e6d76d1396e89374a.1ce25488.png) #### Step 8: Select Microsoft Graph In the **Request API permissions** panel, click **Microsoft Graph**. ![Request API permissions panel with Microsoft Graph highlighted](/assets/microsoft-todo-8.b6b4c4af3477e8d862a8131175ef1bfc21c253cd54c43448c26077e35ce0e6f4.1ce25488.png) #### Step 9: Select delegated permissions Click **Delegated permissions**. Use the search box to find the `Tasks` group and expand it. Select the required permissions, then also search for `offline_access` and select it. Click **Add permissions**. ![Delegated permissions list with Tasks scopes selected](/assets/microsoft-todo-9.a8789b5330dfd895bb0fce3ff8e7047ad3a2425f612fdb64d3e20df19dd8ad8e.1ce25488.png) #### Step 10: Verify configured permissions After adding permissions, the **API permissions** page shows all configured permissions under **Microsoft Graph**. ![API permissions page showing the configured Microsoft To Do permissions](/assets/microsoft-todo-10.9bf24712c563f6955d8c2ba9d63af92a264c5c056049eeba1ed56fd42b438902.1ce25488.png) ### Configure the Frontegg portal Once you have your **Client ID**, **Client Secret**, and optionally the **Tenant ID**, enter them in the Frontegg portal: 1. Open the **Frontegg portal** and navigate to [ENVIRONMENT] → Integrations → Microsoft To Do. 2. Enter the **Client ID** and **Client Secret** in the corresponding fields. 3. Optionally, enter the **Directory (tenant) ID**. Leave blank or use `common` for multi-tenant applications. 4. Select the required **scopes**: | Scope | Description | | --- | --- | | `User.Read` | Sign in and read the signed-in user's profile | | `Tasks.Read` | Read the user's tasks and task lists, including any shared with the user | | `Tasks.ReadWrite` | Create, read, update, and delete the user's tasks and task lists | | `Tasks.Read.Shared` | Read tasks the user has permissions to access, including shared tasks | | `Tasks.ReadWrite.Shared` | Create, read, update, and delete tasks the user has permissions to, including shared tasks | | `offline_access` | Maintain access to data the user has granted | 1. Click **Save**. Keep your credentials secure Never share or commit your Client Secret to version control. ### Additional resources - [Microsoft Graph To Do API documentation](https://learn.microsoft.com/en-us/graph/api/resources/todo-overview) - [Azure portal](https://portal.azure.com/) - [Microsoft identity platform and OAuth 2.0](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow) - [How to get your Redirect URL](/agen-for-work/connectors/redirect-url)