# Microsoft

## Register Oauth2 applications

Follow the next link:

{% content-ref url="/pages/-Me9fzT4y1TNofMQ4hED" %}
[Microsoft](/6.0/v4.3/app-registration/microsoft.md)
{% endcontent-ref %}

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me086OvqXe7INvy2ZEb%2FApp_registrations_-_Microsoft_Azure.png?alt=media\&token=05e15537-ac5b-4930-875d-3ce557989f35)

\+ New registration

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0AgG8gMSaG42MXBG7%2FRegister_an_application_-_Microsoft_Azure.png?alt=media\&token=84e40b34-ca1f-4dd6-9cb2-99bc87af9243)

You need to register one more URL in order to use the OneDrive Javascript file picker:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0DmB4CqpOSVsNAwZ9%2FACME_-_Microsoft_Azure.png?alt=media\&token=fbe1f501-4195-490a-8076-fa2d910dc436)

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0E5emvZiATLGjQSkP%2FNotification_Center.png?alt=media\&token=bd16aa5f-a167-4e2e-83d3-0a6fe37d085a)

/plugin/onedrive/picker

And select both of these options:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0EcbcFpuIZiAe-1Pw%2FACME_-_Microsoft_Azure.png?alt=media\&token=38ec12f5-ac07-4107-bcd6-f4ab6c3b242a)

And save the changes:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0FUbzbAbNKRvL1mB_%2FACME_-_Microsoft_Azure.png?alt=media\&token=800e061d-b113-4c24-88a9-0ec4f4c12559)

The next step is creating *clientId* and *clientSecret*:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0edFoox-LXjNDTW9x%2FACME_-_Microsoft_Azure.png?alt=media\&token=0b6432f1-a8cf-4438-ac69-8570331bc78c)

Add new client secret

Unfortunately, the secret has an expiration, you're going to have to create a new one in 2 years:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0fERE8BWiv_w1qiw4%2FAdd_a_client_secret_-_Microsoft_Azure.png?alt=media\&token=159588b9-6519-4961-ae32-944d7fa47102)

Use the furthest date possible:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0faf_vLUp9_AtUPIg%2FAdd_a_client_secret_-_Microsoft_Azure.png?alt=media\&token=626539c9-043f-4932-b95d-4786aaf25cfd)

You will get a new secret, copy the *Value* into the clipboard:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0yNicp1O-ZdEelIhG%2FACME_-_Microsoft_Azure.png?alt=media\&token=33f739b7-57cb-435a-b565-fd85fa9dfa2e)

This is the *clientSecret,* the Microsoft *Secret ID* is the Appmixer *clientId.* These secrets need to be added into the Backoffice:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0gWY77SvV4q3zRvTB%2FAppmixer_Backoffice_-_Service_Configuration.png?alt=media\&token=42510cc9-61cf-43ca-95d5-40adcf508bb9)

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0gsiPbSjr_GheayYU%2FAppmixer_Backoffice_-_Service_Configuration.png?alt=media\&token=1f691ec0-7587-4573-83ea-40d24404777e)

appmixer:microsofr

And add new keys:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0h12Mt-dLWLUOoEN-%2FAppmixer_Backoffice_-_Service_Configuration.png?alt=media\&token=6c78e3a9-77f3-44f5-9410-3258e7d21da5)

The *clientId* is the *Application (client) ID f*rom the main page:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0z406TOEWZFwi30Ax%2FAppmixer_QA_-_Microsoft_Azure.png?alt=media\&token=88e0ba4c-9004-4dbe-a89a-3c3360a5b1f5)

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0zeOSWIvK55Dasixf%2FAppmixer_Backoffice_-_Service_Configuration.png?alt=media\&token=c4a9c804-8160-4748-ac06-359d859d05a2)

​

Then go to the *API permissions* section:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0jEMswr6GsHVP9oqS%2FACME_-_Microsoft_Azure.png?alt=media\&token=e73014fd-4f63-4f30-8a55-8a25597b4c82)

Choose *Microsoft Graph*:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0jRoK8hF4Pk4A5A7m%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=dbd8bd5f-7dca-45ef-9458-66def3750f67)

Delegated permissions:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0jaCe9HO_iWvxFA0J%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=b456879b-c9fa-42d6-a802-d2a64551438b)

Type-in *Files*:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0jmcYVvKxrPq44fqj%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=c8ac0f9d-669e-4672-976f-96abfc38c3c8)

And select these two:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0k-yXGQD5RqEw9MNR%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=88f0be9d-1d8f-4bfc-995a-a40d2c929ea6)

Then type-in *offline* and select this permission:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0kGZtdJFKq04K5lUZ%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=f24a0b47-396d-4889-a846-fa68922b730b)

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0oxHuMI13WQSXipDh%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=10e8e312-4cf7-4d19-9c59-edccdb98a865)

​

The final set of permissions:

![](https://gblobscdn.gitbook.com/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me1418HBBeF-9brHZtd%2FNotification_Center.png?alt=media\&token=19e858f1-c384-46f3-bf36-56f2791875b5)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmixer.com/6.0/v4.3/app-registration/microsoft.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
