> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/sharepoint-security-sync/configuration/connector-configuration/authenticate-connector/grant-access-to-all-sites.md).

# Grant Access to All Sites

To grant users access to all sites, follow the steps given below:

<figure><img src="/files/1RzQMp5k4udMbvcvHUGf" alt=""><figcaption></figcaption></figure>

In order to know how to generate an ID and Password/Secret for App [click here](https://www.inogic.com/blog/how-to-create-azure-active-directory-app/). After you have generated the ID and Password enter them in the fields provided.

After you have generated the ID and Password enter them in the fields provided.

<figure><img src="/files/As54mMrIM25jPnXwlHnG" alt=""><figcaption></figcaption></figure>

Once the record is saved, click on the **Authenticate** Button.

<br>

<figure><img src="/files/Kd6SMXBeVbaLBbg6La1W" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** This button is visible only to users with **System Administration** or **Attach2Dynamics Administrator** roles.
{% endhint %}

* A Pop-up window will appear. Fill in your credentials and then a confirmation Pop-up will be opened.
* In the Pop-up, please select Consent on behalf of your organization --> Click on the Accept button.

<figure><img src="/files/50wosih1sNuZwCKa64Va" alt=""><figcaption></figcaption></figure>

* After clicking on the Accept button if the credentials are correct then you will get a Success message window.

<figure><img src="/files/N67Ib2FUHf1cVfwMtcjF" alt=""><figcaption></figcaption></figure>

* If Connector authentication fails, then the following error pop-up will appear:

<figure><img src="/files/9ZSP41mYoBNk5wDMAsZ9" alt=""><figcaption></figcaption></figure>

* **For Example:** Now if any logged-in user uploads or performs any attachment action on files in SharePoint, their name will appear for the action. Let’s upload a few files and see how it works.

{% hint style="info" %}
**Note:** To use Attach2Dynamics UI, Entity Configuration is required. ([LINK HERE](https://docs.inogic.com/attach2dynamics/configuration/entity-configuration))
{% endhint %}

* Navigate to a desired **‘Entity’** e.g. **Accounts Entity.**

<figure><img src="/files/3PrbpDskVNsGQbIp1RNQ" alt=""><figcaption></figcaption></figure>

* Click on the required **Account Record.**

<figure><img src="/files/ziSL2hTvOfhBBxfuj6CQ" alt=""><figcaption></figcaption></figure>

* Now Click on the ‘**Attach2Dynamics**’ Button.

<figure><img src="/files/HAEhGhIAf2yj9m8xd91U" alt=""><figcaption></figcaption></figure>

* Click on the **‘Upload**’ Button.

<figure><img src="/files/jOp0wctnSuq7gNGyAnyu" alt=""><figcaption></figcaption></figure>

* Now your ‘**Files**’ will be uploaded on SharePoint.

<figure><img src="/files/NcPFA6H5ec9ZCXioTaTF" alt=""><figcaption></figcaption></figure>

Here the name of the admin appears when they are logged in and have uploaded the file.

<figure><img src="/files/Mcqfe1ItkHavDla63WcG" alt=""><figcaption></figcaption></figure>

Now let’s take another use-case when a user, who is not an admin uploads a file. James is a Sales Manager who does not have admin rights. Now he uploads the files while being logged in, and his name appears as the user uploading the file.

<figure><img src="/files/1Nx3WPcJPX5O6Nso1IsP" alt=""><figcaption></figcaption></figure>

* [x] For any queries, reach out to us at <crm@inogic.com>


---

# 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 dynamically by asking a question.

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

```
GET https://docs.inogic.com/sharepoint-security-sync/configuration/connector-configuration/authenticate-connector/grant-access-to-all-sites.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
