> 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="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FK4hS6G0RZTexGLh2BhSy%2Fimage.png?alt=media&amp;token=0371d587-37b4-4306-a358-09638dea2d0b" 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="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FTM7Ma5jnWLQ8ZxzCCx5M%2Fimage.png?alt=media&amp;token=abc4b0af-56e0-4202-b2ec-d66d24b1e650" alt=""><figcaption></figcaption></figure>

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

<br>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FUmugjiIiXHaZrqyOGOG9%2Fimage.png?alt=media&amp;token=3f30acea-96e1-448e-b3e4-b5731f26d0ae" 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="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F3lyPi7uhVKlUjBalCVX3%2Fimage.png?alt=media&amp;token=97a54c9b-2e9f-40a2-a456-a734edfcbbcc" 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="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FUUE5jvKgCI34PepXLm4F%2Fimage.png?alt=media&amp;token=77bcdf52-ff83-4f03-b811-75a7d3e0d298" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FG70M6HE0LdsVbc8ClfHD%2Fimage.png?alt=media&amp;token=a1827563-6c0c-4323-8a01-ef5008852759" 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="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FzLYuX8qdltz4Hdgr9LzU%2Fimage.png?alt=media&amp;token=93ec15ee-80ab-4f1d-9c46-dfaf14a93f0e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F5gOa37iOkVXaOy3zgZnw%2Fimage.png?alt=media&amp;token=821fd749-71c1-47de-a78f-b30eb74e2733" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fu40JMO1ibsOkgBL4TWqn%2Fimage.png?alt=media&amp;token=b36be75f-9379-451b-adbe-c98ab1e6dbfc" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FFLOSjD5uPZt7VergBid5%2Fimage.png?alt=media&amp;token=1123595e-3b0b-49cb-a7d1-650d92d5a72c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FBGAsvnJsXt5nXi4I3ouj%2Fimage.png?alt=media&amp;token=e5a47e59-e537-4b42-be1c-77e90cc60bb8" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FfG5c1fRHsA4ircXNj4wO%2Fimage.png?alt=media&amp;token=caf52bea-28b3-49cc-a95f-6482c5009159" 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="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FcoEu9PrmGsvNOvCBDWxv%2Fimage.png?alt=media&amp;token=948fddb3-cf48-4067-9230-876f86a209b9" alt=""><figcaption></figcaption></figure>

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