> For the complete documentation index, see [llms.txt](https://docs.jigx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jigx.com/building-apps-with-jigx/data/data-providers/rest/microsoft-graph-oauth.md).

# Microsoft Graph OAuth

This section contains steps to create an OAuth app for MS Graph, add the OAuth configuration to Jigx Management and then use the configuration in a Jigx solution. Various code samples showing how to use the Microsoft Graph API with the REST data provider are provided.

{% hint style="info" %}
To use Jigx with Microsoft Graph you will need an administrative account for Microsoft AAD to configure a Jigx Enterprise App, allowing Jigx to use OAuth authentication with Microsoft Graph.

Follow the steps in [Configuring OAuth for MS Graph](/building-apps-with-jigx/data/data-providers/rest/microsoft-graph-oauth/configuring-oauth-for-ms-graph.md) to configure OAuth for the Microsoft environment being used and add the necessary settings to Jigx Cloud.&#x20;
{% endhint %}

### Examples and code snippets

1. [Graph User Profile](https://docs.jigx.com/examples/graph-user-profile) - provides sample code to get a user's profile information from Microsoft Graph. It includes a [code sample](https://docs.jigx.com/examples/update-profile-photo) for updating a user's profile picture in Microsoft Graph.
2. [Graph Calendar](https://docs.jigx.com/examples/graph-calendar) - provides sample code to get a list of the user's calendars and renders a calendar in a schedule view on a jig. It includes a code sample on adding calendar entries to a user's Microsoft 365 calendar in Exchange.
3. [Graph Mail](https://docs.jigx.com/examples/graph-mail) - provides sample code to get a list of emails for a user and displays the emails in a list jig. Press on an email to view the content of the email.
4. [Graph tasks](https://docs.jigx.com/examples/graph-tasks) - provides sample code to get a list of To-do tasks for a user and displays the tasks in a list jig.
5. [Graph Insights](https://docs.jigx.com/examples/graph-insights) - provides sample code to get insights that include a list of documents trending around the user and displays the list in a list jig.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jigx.com/building-apps-with-jigx/data/data-providers/rest/microsoft-graph-oauth.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
