> For the complete documentation index, see [llms.txt](https://help.sipgate.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sipgate.de/cloud-telefonanlage/en/connections-and-integrations/ms-teams/sipgate-und-ms-teams-telefonie-fuer-einen-user-im-office-tenant-einrichten.md).

# sipgate and MS Teams - set up telephony for one user in the Office tenant

Telephony for a user in MS Teams can be set up in two ways:

{% tabs %}
{% tab title="PowerShell" %}
**Using PowerShell and the Microsoft Teams module**

You can connect to the Office tenant with the following command; authentication takes place in a separate window:

```powershell
Connect-MicrosoftTeams
```

In the next step, perform the authentication once for each user: adjust the email address, phone number, and, if necessary, the "PolicyName".

```powershell
Set-CsPhoneNumberAssignment -Identity UserMail@YourDomain.xy -PhoneNumber +49xx -PhoneNumberType DirectRouting
Grant-CsOnlineVoiceRoutingPolicy -Identity "UserMail@YourDomain.xy" -PolicyName "sipgate"
```

You can find more about PowerShell with the Microsoft Teams module [at this link](https://learn.microsoft.com/de-de/microsoftteams/teams-powershell-install).
{% endtab %}

{% tab title="GUI (without PowerShell)" %}
**In the GUI, without PowerShell**

**Assign phone number**

Open the Microsoft Teams Admin Center, select under **Users** the item **Managing users** and then select the desired user.

![sipgate-help-center-MSTeams1.png](/files/2663ebf933c550516ca973b685a04378037054a5)

In the next step, select the item **Edit** .

![sipgate-help-center-MSTeams2.png](/files/965f2d07280666d307e19b04c883ccdd640798ed)

A sidebar will then appear on the right side of the window, in which you should fill in the following fields:

**Phone number type:** Direct Routing

**Assigned phone number:** User's phone number in E.164 format, i.e. with international prefix without leading + or 0 digits (example: 4921110000)

The entry is completed by clicking **Apply** .

![sipgate-help-center-MSTeams3.png](/files/cc1b29e85ce6eca264adfeadd6034a507d3def03)

**Assign policy**

In the next step, you should assign the telephony policy to the users. To do this, go to the **Policies** tab for the users and select there **Edit** .

![sipgate-help-center-MSTeams4.png](/files/7dcae6597bcd01e8d0c6b93e102cc10f744d426c)

A sidebar will now appear in which you should select the **VoIP routing policy** for sipgate.

![sipgate-help-center-MSTeams5.png](/files/56aed6cf834aebddf33fb24df04364d8e462b1c9)
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Depending on the response time of the MS platform, implementation may work immediately or take several hours.
{% endhint %}

You can get more information either on our [website](https://www.sipgate.de/funktionen/integrationen/microsoft-teams-integration) or in a non-binding consultation. Please contact us via our [contact form](https://www.sipgate.de/microsoft-teams-beratung-anfordern).


---

# 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://help.sipgate.de/cloud-telefonanlage/en/connections-and-integrations/ms-teams/sipgate-und-ms-teams-telefonie-fuer-einen-user-im-office-tenant-einrichten.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.
