> For the complete documentation index, see [llms.txt](https://antoinepinto.gitbook.io/easyenvi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://antoinepinto.gitbook.io/easyenvi/sharepoint-environment/sharepoint-initialisation.md).

# 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.
