> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect AD Manager with API Key (Multiple Companies) – StackOne Hub

> Link a AD Manager account in the StackOne Hub using API Key (Multiple Companies). End-user guide to authorize the integration and start using AD Manager actions.

> [!WARNING]
>
> The authtoken acts with the permissions of the technician it belongs to, so generate it as a technician who is delegated the Active Directory actions you plan to run. Your ADManager Plus server must be reachable from StackOne over HTTPS.

## Find your Server URL

Your Server URL is the address of your self-hosted ADManager Plus web console.

<ul>
  <li>Copy it from your browser address bar while signed in to ADManager Plus, keeping only the protocol, host and port.</li>
  <li>Paste it into the **Server URL** field in StackOne Hub, without a trailing slash, `/api/v2` or `/RestAPI`.</li>
  <li>Format: `https://{hostname}:{port}`</li>
  <li>Example: `https://admanager.example.com:8443`</li>
  <li>The **Native Webhook URL** field is filled in by StackOne and is only needed if you send webhook events from ADManager Plus.</li>
</ul>

## Generating an authtoken

An authtoken lets StackOne call the ADManager Plus REST API on behalf of a technician. It is the API key for this connection, so in StackOne Hub it goes in the **Authtoken** field.

**1. Open My Account**

ADManager Plus is self-hosted, so there is no shared sign-in page. Sign in to the web console at your own Server URL (the address described in the Server URL section above), then click the profile icon in the top-right corner and select **My Account**.

![The ADManager Plus profile menu with the profile icon and the My Account option highlighted](https://mintcdn.com/stackone-60/jERJ9_eViqdCgKDW/connectors/admanager/images/custom-config-my-account-menu.png?fit=max\&auto=format\&n=jERJ9_eViqdCgKDW\&q=85\&s=2ad59beef8e7c9f57501ebb2df29acf8)

**2. Open Active Authtokens**

In the **My Account** window, open the **Active Authtokens** tab and click **Generate Authtoken**.

![The Active Authtokens tab of My Account with the Generate Authtoken button highlighted](https://mintcdn.com/stackone-60/jERJ9_eViqdCgKDW/connectors/admanager/images/custom-config-active-authtokens.png?fit=max\&auto=format\&n=jERJ9_eViqdCgKDW\&q=85\&s=ca8c48d4e52442a281b435db3fe80c0d)

**3. Choose the scope**

Leave **Scope** set to **All actions** so the authtoken covers every action StackOne uses. The list groups actions by object, for example **All user management actions** with **Read user action**, **Create user action**, **Modify user action** and **Delete user action**, and the same for computers, groups, OUs, contacts, orchestration templates and admin settings.

<ul>
  <li>To limit access, untick the groups or individual actions StackOne should not perform. Calls for any action outside the selected scope fail.</li>
  <li>If you limit user access to read-only, also keep **Modify user action** selected. ADManager Plus checks this scope, not **Read user action**, when listing users.</li>
</ul>

![The Scope list open with the All actions option highlighted](https://mintcdn.com/stackone-60/jERJ9_eViqdCgKDW/connectors/admanager/images/custom-config-scope-options.png?fit=max\&auto=format\&n=jERJ9_eViqdCgKDW\&q=85\&s=c084b6ac4118fe3d82a78309bd68807b)

**4. Fill in the authtoken details**

Complete the **Generate New Authtoken** form.

<ul>
  <li>**Authtoken Name**: `StackOne Integration` (or any name you prefer)</li>
  <li>**Scope**: **All actions**, as described in the previous step</li>
  <li>**Expiration Time**: how long StackOne should keep access. When the authtoken expires, StackOne can no longer connect until you generate a new one.</li>
  <li>Click **Generate Authtoken**.</li>
</ul>

![The Generate New Authtoken form with the Authtoken Name, Scope, Expiration Time fields and the Generate Authtoken button highlighted](https://mintcdn.com/stackone-60/jERJ9_eViqdCgKDW/connectors/admanager/images/custom-config-generate-authtoken-form.png?fit=max\&auto=format\&n=jERJ9_eViqdCgKDW\&q=85\&s=a7d0d2ffcf5671c4396757a18efb3478)

**5. Copy the authtoken**

Click **Copy to Clipboard** and paste the value into the **Authtoken** field in StackOne Hub.

<ul>
  <li>The authtoken value is only displayed on this screen and cannot be retrieved later; the **Active Authtokens** list shows only its name. Store it securely for use later.</li>
  <li>Authtokens can be used for impersonating a help desk technician and should therefore be kept confidential.</li>
</ul>

![The generated authtoken with its value hidden and the Copy to Clipboard button highlighted](https://mintcdn.com/stackone-60/jERJ9_eViqdCgKDW/connectors/admanager/images/custom-config-copy-authtoken.png?fit=max\&auto=format\&n=jERJ9_eViqdCgKDW\&q=85\&s=0f33a174e4edd69b85915234b36a8eae)

**6. Generate it as the built-in admin**

If you are signed in as the built-in admin, you can generate an authtoken for any help desk technician from **Delegation** > **Configuration** > **Technician Authtokens**: choose the technician in **Select Help Desk Technicians**, then click **Generate Authtoken** and complete the same form.

<ul>
  <li>ADManager Plus shows this note on the page: "Once your trial period ends, this feature will be disabled unless you purchase the 'Help Desk Technician' pack for your licensed copy."</li>
</ul>

![The Delegation tab with Technician Authtokens selected, and the Select Help Desk Technicians field and Generate Authtoken button highlighted](https://mintcdn.com/stackone-60/jERJ9_eViqdCgKDW/connectors/admanager/images/custom-config-technician-authtokens.png?fit=max\&auto=format\&n=jERJ9_eViqdCgKDW\&q=85\&s=173d9f69bf5f9484a09a74544c7ae3b2)

## Enabling REST API access

ADManager Plus only accepts API calls when REST API access is enabled.

**1. Check the Rest API settings**

Navigate to **Admin** > **System Settings** > **Integrations** > **Rest API**.

<ul>
  <li>Make sure **Enable API Access** is switched on.</li>
  <li>The **Rest API Usage** counter shows how many API calls are left in the current period.</li>
</ul>

![The Rest API settings page with the Enable API Access toggle, the Rest API Usage counter and the List AD Users configuration icon highlighted](https://mintcdn.com/stackone-60/jERJ9_eViqdCgKDW/connectors/admanager/images/custom-config-rest-api-settings.png?fit=max\&auto=format\&n=jERJ9_eViqdCgKDW\&q=85\&s=df4f17164bf54acec55e1625c7ba9b22)

**2. Enable extra user columns**

Optional: the default columns are enough for most actions. To return more user attributes, click the configuration icon in the **List AD Users** row. In **Rest API Configuration For "Search User"**, keep **Select API Version** on **Version 2**, tick the columns you need under **Response Columns** (returned in results) and **Search Columns** (usable in filters), then click **Save**.

<ul>
  <li>For logon and account status details, enable **Title**, **Manager**, **Account Status**, **Last Logon Time**, **Days Since Last Logon**, **User Logon Count** and **Bad Password Count** under **Response Columns**.</li>
  <li>Repeat this for the other API rows if you need extra columns for groups, computers, contacts or OUs.</li>
</ul>

![The Rest API Configuration For "Search User" dialog with the API version, the Response Columns and Search Columns lists and the Save button highlighted](https://mintcdn.com/stackone-60/jERJ9_eViqdCgKDW/connectors/admanager/images/custom-config-rest-api-columns.png?fit=max\&auto=format\&n=jERJ9_eViqdCgKDW\&q=85\&s=3280e7ffc0ca2cef4a1652c022b6a652)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/admanager/guides/webhook-setup.md)
>
> Configure receiving Events for AD Manager into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.