> For the complete documentation index, see [llms.txt](https://university.gonexa.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.gonexa.fr/connect/getting-started/configure-connect-sharepoint/configure-azure-and-sharepoint.md).

# Configurer Azure et SharePoint pour Gonexa Connect

Ces étapes nécessitent l'accès à votre Sharepoint par un administrateur.

{% hint style="warning" %}
Ces étapes nécessitent l'accès à votre Sharepoint par un administrateur.
{% endhint %}

## Création d'une application

Accédez à votre Sharepoint depuis le portail Azure ([portal.azure.com](https://portal.azure.com))

* Accédez au service "Azure Active Directory"
* Accédez à "Inscription d'application"
* Cliquez sur "Nouvelle inscription"
* Renseigner un Nom (ex. Gonexa).
* Laissez les paramètres par défaut pour le moment
* Cliquez sur s'inscrire

## Ajout des 3 autorisations d'application

{% tabs %}
{% tab title="Autorisation 1 : Microsoft Graph" %}

* Accédez à l'onglet "API autorisés"
* Cliquez sur "Ajouter une autorisation"
* Sélectionnez Microsoft Graph, puis Autorisations d'application
* Séléctionnez les autorisations suivantes :
  * Site > Site.ReadWrite.All (Application)
  * Site > Site.Selected\* (Application)
  * Files > Files.ReadWrite.All (Application)
    {% endtab %}

{% tab title="Autorisation 2 : SharePoint" %}

* Cliquer sur "Ajouter une autorisation"
* Accédez à l'onglet Sharepoint
* Cliquez sur Autorisation d'application
* Séléctionnez les autorisations suivantes :
  * Sites > Sites.ReadWrite.All (Application)
  * Sites > Sites.Selected\* (Application)
  * User > User.Read.All (Application)
    {% endtab %}
    {% endtabs %}

{% hint style="info" %}
**\*Il y a des étapes supplémentaires à faire par l'admin Sharepoint si c'est cette option qui est choisie à la place de Sites.ReadWrite.All (**[**Mode d'emploi**](https://devblogs.microsoft.com/microsoft365dev/controlling-app-access-on-specific-sharepoint-site-collections/)**).**
{% endhint %}

Cliquez ensuite sur Accorder un consentement d'administrateur pour {Nom de votre entreprise}

{% hint style="warning" %}
Cette étape nécessite les droits "Super Admin Sharepoint". Si le bouton est désactivé, contactez un administrateur ayant les droits requis.
{% endhint %}

## Générer un secret client

Accédez à l'onglet Certificats & Secrets dans l'onglet Secret Client\
Cliquez sur "Nouveau secret client".

* Description : Gonexa Connect
* Date d'expiration : (*libre*)\
  Ex. 730 day (24 month)

{% hint style="info" %}
Veuillez penser à mettre à jour ces éléments avant le jour de l'expiration.
{% endhint %}

Cliquez sur Ajouter

## Récupérer les codes

Accédez à certificats & secrets depuis l'onglet Secrets clients.\
Récupérez les éléments suivants :

* **Valeur :** constitue le secret

{% hint style="warning" %}
Cette valeur n'est récupérable qu'à la création de la clef. Si celle-ci n'est plus affichée vous devrez créer une autre clef.
{% endhint %}

Depuis l'onglet Vue d'ensemble :

* **ID d'application** (client) : constitue le consumer ID
* **ID de l'annuaire** (locataire) : constitue le tenant ID

## Création d'un site depuis Sharepoint

Si vous n'avez pas encore de site paramétré dans Sharepoint, veuillez en créer un.

{% hint style="info" %}
Vous pouvez créer un site de test, pour l'installation du package Gonexa Connect en Sandbox.
{% endhint %}

* Depuis Sharepoint, accédez à Mes sites
* Cliquez sur "Créer un site"
* Sélectionnez "Site d'équipe"
* Nom du site : {Libre} ex. Salesforce
* Cliquez sur Suivant, puis Terminer


---

# 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://university.gonexa.fr/connect/getting-started/configure-connect-sharepoint/configure-azure-and-sharepoint.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.
