> 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/windows-tool/windows-task-scheduler/azure-client-id-and-client-secret-configuration.md).

# Azure Client ID and Client Secret Configuration

The SharePoint Security Sync Scheduler Tool uses the Azure application configured in the SharePoint Connector to authenticate with the Dataverse environment.

Since the Azure application is already configured and authenticated in the SharePoint Connector, **there is no need to create a new Azure application or generate separate credentials.** Reuse the existing Application (Client) ID and Client Secret from the SharePoint Connector configuration.

#### 1. Use the Existing Application Credentials

* Retrieve the existing **Application (Client) ID** and **Client Secret** configured in the authenticated SharePoint Connector.
* Use these same credentials for the Scheduler Tool.
* If a new Client Secret is generated, update it in the SharePoint Connector configuration and authenticate the connector again before using the new secret in the Scheduler Tool.

#### 2. Verify the Application User in Your Environment

Ensure that the existing Azure application is added as an Application User in the target Power Platform environment and assigned the required **System Administrator** security role.

If it is already configured with the required role, no additional setup is necessary.

If not, follow these steps:

1. Open the [Power Platform admin center](https://admin.powerplatform.microsoft.com/).
2. Select the target environment.<br>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FQPIhf2rvGDjXzWw7q16f%2Fimage.png?alt=media&amp;token=28b097af-69e3-43c1-880c-44401c5ea219" alt=""><figcaption></figcaption></figure>

3. Navigate to **Settings**.
4. Under **Users + permissions**, select **Application users**.
5. Select **Add an app**.<br>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FvJJd34xIr4IJhjDEuYK6%2Fimage.png?alt=media&amp;token=41bafc68-64dc-43af-b83a-bf2b14eb25b3" alt=""><figcaption></figcaption></figure>

6. Select the existing Azure application used in the SharePoint Connector.
7. Assign the **System Administrator** security role.<br>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F6q4h9kuDz4wliuIutQJX%2Fimage.png?alt=media&amp;token=2b0d5130-2697-4a06-8cba-5c86390aa45e" alt=""><figcaption></figcaption></figure>

8. Select **Create**.

#### 3. Use the Credentials in Command-Line Arguments

Use the existing Client ID and Client Secret in the command-line arguments for the selected Scheduler operation.

**Command Format:**

```
--clientId "<CLIENT_ID>" --clientSecret "<CLIENT_SECRET>"
```

Replace the placeholders with the credentials configured in the SharePoint Connector.

&#x20;

&#x20;
