# SharePoint initialisation

For initialization on SharePoint, you need to obtain the credentials required to authenticate to SharePoint.

* [How do I get my SharePoint authentication credentials?](https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs)

Then, initialise EasyEnvironment as follows:

```python
from easyenvi import EasyEnvironment

envi = EasyEnvironment(
  sharepoint_site_url="https://{tenant}.sharepoint.com/sites/{site}",
  sharepoint_client_id="your-client-id",
  sharepoint_client_secret="your-client-secret",
                  )
```

For an identification with a SharePoint account, specify `sharepoint_username` and `sharepoint_user_password` paramaters:

```python
envi = EasyEnvironment(
  sharepoint_site_url="https://{tenant}.sharepoint.com/sites/{site}",
  sharepoint_username="your-username",
  sharepoint_user_password="your-password"
                  )
```

* **sharepoint\_site\_url -&#x20;*****str***\
  SharePoint site.
* **sharepoint\_client\_id -&#x20;*****str***\
  client id
* **sharepoint\_client\_secret -&#x20;*****str***\
  client secret
* **sharepoint\_username -&#x20;*****str***\
  User name of a SharePoint user account.
* **sharepoint\_user\_password -&#x20;*****str***\
  User password of a SharePoint user account.


---

# 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://antoinepinto.gitbook.io/easyenvi/sharepoint-environment/sharepoint-initialisation.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.
