# Option 2: Contact Center (Preview)

**This feature is in** [**Preview**](/appendix/feature-states.md)**.**

{% hint style="warning" %}
Prerequisites:&#x20;

Teams API service account configured. See [Teams API Service Account](/appendix/teams-api-service-account.md)

Teams Config API permissions granted. See [Settings](/administration/settings.md#general)
{% endhint %}

1. Navigate to Queues & IVRs | Connectors | Resource accounts | Add.&#x20;
2. Enter a resource account display name. &#x20;
3. Select the Interaction Object (Queue or IVR) that should be associated with the resource account.&#x20;
4. Enter a unique user principal name.
5. Select button Sync to Teams. This will create the resource account in Teams. If the account creation was successful, the Object ID field should be automatically populated with a GUID.
6. Verify a Microsoft Teams Phone Resource Account license is available in the Microsoft 365 admin portal. Select button Assign Phone System License.&#x20;

{% hint style="info" %}
After a Microsoft Teams Phone Resource Account license is assigned to the resource account, some provisioning time will be needed until a phone number can be granted.
{% endhint %}

7. (Optional) Enter an available phone number in E.164 format in the phone number field.
8. From the Phone Number Type dropdown, select the type of number assigned in step 7.
9. Select Set Phone Number Button. If an error message appears, wait a few minutes and try again.
10. Select Save.
11. Connect to Teams PowerShell | Run the following commands:

```
$Instance = Get-CsOnlineApplicationInstance -Identity "Resource Account Username"
Sync-CsOnlineApplicationInstance -ObjectId $Instance.ObjectId -ApplicationId $Instance.ApplicationId
$Instance.ObjectId
```

*Note: Replace "Resource Account Username" in the above command with the UPN of the resource account in step 4.*

{% hint style="warning" %}
Changes made to resource accounts in the Teams admin center or PowerShell will not be synced to Contact Center. The changes will need to be manually updated in Contact Center.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://cc.docs.landis.cloud/setup/set-up-voice-channel/set-up-queue-or-ivr-resource-account/automated-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
