---
agentTools:
  projectIndex: https://docs.xkit.co/llms.txt
---

# First User Integration - Calendar

Steps to set up Outlook Calendar with Xkit

*Microsoft's Guide: [https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-web-app-sign-user-overview](https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-web-app-sign-user-overview?tabs=aspnetcore)*
*Authorization protocol: OAuth 2.0*

[block:api-header]
{
  "title": "1. Add the Outlook Calendar connector in the Xkit platform"
}
[/block]

* In the Xkit platform, click "New Connector" in the sidebar or at the bottom of the "Connectors" screen.
* Click "Outlook Calendar". At this point you'll see a callback url, which you'll provide to Microsoft through the Azure portal in the next step, and places to input the Client ID and Client Secret that you'll get from Azure after registering your app.

[block:html]
{
  "html": "<div style=\"margin-left:28px\">\n<video width=\"600px\" style=\"border:1px solid #d6d6d6; padding:4px;\" controls>\n  <source src=\"https://xkit-assets.s3-us-west-2.amazonaws.com/Website/Videos/Microsoft/UserOutlook+Calendar+1.mp4\" type=\"video/mp4\">\n  \" Your browser does not support HTML5 video.\n  \"\n  </video>\n</div>\n\n<style></style>"
}
[/block]

[block:api-header]
{
  "title": "2. Register your application with Microsoft Azure"
}
[/block]

* Next, in a separate window, sign in to (or create) your Microsoft account with [Azure access](https://portal.azure.com).
* Click on "Manage Azure Active Directory" and then "App registrations" in the sidebar or visit this [link](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps)
* Then click "Register an application".
* Input the name of your app.
* Select "Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)".
* Add the Redirect URI provided by Xkit in [Step 1](#1-add-the-outlook-calendar-connector-in-the-xkit-platform).
* Click "Register".

[block:html]
{
  "html": "<div style=\"margin-left:28px\">\n<video width=\"600px\" style=\"border:1px solid #d6d6d6; padding:4px;\" controls>\n  <source src=\"https://xkit-assets.s3-us-west-2.amazonaws.com/Website/Videos/Microsoft/UserOutlook+Calendar+2.mp4\" type=\"video/mp4\">\n  \" Your browser does not support HTML5 video.\n  \"\n  </video>\n</div>\n\n<style></style>"
}
[/block]

[block:api-header]
{
  "title": "3. Generate a Client Secret"
}
[/block]

* Click on "Certificates & secrets" in the sidebar of your registered app in the Azure portal
* Click on "+ New client secret"
* Name the secret however you wish ("Xkit" is a good name) and set the expiration to "Never"
* Copy the generated secret

[block:callout]
{
  "type": "warning",
  "title": "Secret available only once",
  "body": "The client secret will disappear after leaving the window. Make sure to copy the secret before leaving this page."
}
[/block]

[block:html]
{
  "html": "<div style=\"margin-left:28px\">\n<video width=\"600px\" style=\"border:1px solid #d6d6d6; padding:4px;\" controls>\n  <source src=\"https://xkit-assets.s3-us-west-2.amazonaws.com/Website/Videos/Microsoft/UserOutlook+Calendar+3.mp4\" type=\"video/mp4\">\n  \" Your browser does not support HTML5 video.\n  \"\n  </video>\n</div>\n\n<style></style>"
}
[/block]

[block:api-header]
{
  "title": "4. Provide Xkit with the credentials"
}
[/block]

* Paste the Client secret from [Step 3](#3-generate-a-client-secret) into the "Client Secret" field on Xkit.
* Copy the "Application (client) ID" from the overview page of your created app in the Azure portal paste it into the "Client ID" field on Xkit.
* Click "Save"

[block:html]
{
  "html": "<div style=\"margin-left:28px\">\n<video width=\"600px\" style=\"border:1px solid #d6d6d6; padding:4px;\" controls>\n  <source src=\"https://xkit-assets.s3-us-west-2.amazonaws.com/Website/Videos/Microsoft/UserOutlook+Calendar+4.mp4\" type=\"video/mp4\">\n  \" Your browser does not support HTML5 video.\n  \"\n  </video>\n</div>\n\n<style></style>"
}
[/block]

[block:api-header]
{
  "title": "5. Add Catalog Settings"
}
[/block]

* On Xkit, you will see fields to control how your Outlook Calendar connector appears to users
* (Optionally) Add a description for your connector that will display to your users on viewing your catalog
* Click "Save"

[block:html]
{
  "html": "<div style=\"margin-left:28px\">\n<video width=\"600px\" style=\"border:1px solid #d6d6d6; padding:4px;\" controls>\n  <source src=\"https://xkit-assets.s3-us-west-2.amazonaws.com/Website/Videos/Microsoft/UserOutlook+Calendar+5.mp4\" type=\"video/mp4\">\n  \" Your browser does not support HTML5 video.\n  \"\n  </video>\n</div>\n\n<style></style>"
}
[/block]

[block:api-header]
{
  "title": "6. Set up API permissions in Xkit"
}
[/block]

* The "Connector Settings" page includes a list of available scopes for your connector. You can read more about those scopes in the [Microsoft Graph permissions reference](https://docs.microsoft.com/en-us/graph/permissions-reference#delegated-permissions-7)
* Check the boxes on Xkit next to the permissions you need to build your integration.

[block:html]
{
  "html": "<div style=\"margin-left:28px\">\n<video width=\"600px\" style=\"border:1px solid #d6d6d6; padding:4px;\" controls>\n  <source src=\"https://xkit-assets.s3-us-west-2.amazonaws.com/Website/Videos/Microsoft/UserOutlook+Calendar+6.mp4\" type=\"video/mp4\">\n  \" Your browser does not support HTML5 video.\n  \"\n  </video>\n</div>\n\n<style></style>"
}
[/block]

[block:api-header]
{
  "title": "7. Set up API permissions on Azure"
}
[/block]

[block:callout]
{
  "type": "warning",
  "body": "In addition to the permissions you've selected for your app, you must also include `offline_access`. You can read more about this permission [here](https://docs.microsoft.com/en-us/graph/permissions-reference#delegated-permissions-35).\n\n It is depicted as checked when setting up the connector in Xkit.",
  "title": "Required additional permissions"
}
[/block]

* Click on "API Permissions" in the Azure Portal sidebar and then click "+ Add a permission"
* Click on "Microsoft Graph" and then click on "Delegated permissions"
* Under the "Openid permissions" category, select the checkbox next to `offline_access`
* Under the "Calendar" category, select the checkboxes that correspond to the boxes you checked on Xkit in [Step 6](#6-set-up-api-permissions-in-xkit)
* At the bottom of the window, click "Add permissions"

[block:html]
{
  "html": "<div style=\"margin-left:28px\">\n<video width=\"600px\" style=\"border:1px solid #d6d6d6; padding:4px;\" controls>\n  <source src=\"https://xkit-assets.s3-us-west-2.amazonaws.com/Website/Videos/Microsoft/UserOutlook+Calendar+7.mp4\" type=\"video/mp4\">\n  \" Your browser does not support HTML5 video.\n  \"\n  </video>\n</div>\n\n<style></style>"
}
[/block]

[block:api-header]
{
  "title": "8. Save Xkit Connector"
}
[/block]

* Click "Save" on the Connector Settings screen in Xkit.

[block:html]
{
  "html": "<div style=\"margin-left:28px\">\n<video width=\"600px\" style=\"border:1px solid #d6d6d6; padding:4px;\" controls>\n  <source src=\"https://xkit-assets.s3-us-west-2.amazonaws.com/Website/Videos/Microsoft/UserOutlook+Calendar+8.mp4\" type=\"video/mp4\">\n  \" Your browser does not support HTML5 video.\n  \"\n  </video>\n</div>\n\n<style></style>"
}
[/block]

**You've now successfully connected Outlook Calendar with Xkit!**