> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/pt/automatizacao/runbooks/runbook-references/user/phone/set-teams-phone.md).

# Definir Teams Phone

Atribuir um número de telefone e políticas de voz a este utilizador

### Descrição

Atribui um número de telefone a este utilizador do Teams e, opcionalmente, define a política de encaminhamento de voz, o plano de marcação, a política de chamadas e a política de telefone IP. Apenas as políticas que preencher são alteradas. Introduza Global (Predefinição em toda a organização) para remover uma atribuição e voltar ao padrão do Tenant.

### Localização

Utilizador → Telefone → Definir Teams Phone

**Nome completo do runbook**

rjgit-user\_phone\_set-teams-phone

### Detalhes

| Propriedade         | Valor                                                                   |
| ------------------- | ----------------------------------------------------------------------- |
| Versão              | 1.0.2                                                                   |
| Módulos necessários | <p>RealmJoin.RunbookHelper (>= 0.8.10)<br>MicrosoftTeams (>= 7.9.0)</p> |
| Agendável           | não                                                                     |

### Permissões

#### Permissões de aplicativo

* **Tipo**: Microsoft Graph
  * Organization.Read.All
    * *Necessário para a autenticação do Teams PowerShell baseada em aplicativo para ler informações do Tenant*

#### Funções RBAC

* Administrador do Teams
  * *Necessário para atribuir números de telefone e políticas de voz através dos cmdlets Set-CsPhoneNumberAssignment e Grant-Cs*

### Parâmetros

#### Nome de usuário

Nome principal do usuário no qual o runbook atua. Definido pelo portal a partir do usuário selecionado.

| Propriedade      | Valor                                                   |
| ---------------- | ------------------------------------------------------- |
| Obrigatório      | verdadeiro                                              |
| Valor padrão     |                                                         |
| Tipo             | Texto                                                   |
| Oculto no portal | sim (predefinido por meio da personalização do runbook) |

#### PhoneNumber

Número a atribuir, no formato E.164, como +49123456789.

| Propriedade                | Valor                                            |
| -------------------------- | ------------------------------------------------ |
| Obrigatório                | verdadeiro                                       |
| Valor padrão               |                                                  |
| Tipo                       | Texto                                            |
| Nome de exibição no portal | Número de telefone (E.164, por ex. +49123987654) |

#### OnlineVoiceRoutingPolicy

Política de roteamento de voz a atribuir. Deixe em branco para manter a atual ou insira Global (Padrão global da organização) para redefini-la.

| Propriedade                | Valor                                    |
| -------------------------- | ---------------------------------------- |
| Obrigatório                | falso                                    |
| Valor padrão               |                                          |
| Tipo                       | Texto                                    |
| Nome de exibição no portal | Política de encaminhamento de voz online |

#### TenantDialPlan

Plano de discagem a atribuir. Deixe em branco para manter o atual ou insira Global (Padrão global da organização) para redefini-lo.

| Propriedade                | Valor                       |
| -------------------------- | --------------------------- |
| Obrigatório                | falso                       |
| Valor padrão               |                             |
| Tipo                       | Texto                       |
| Nome de exibição no portal | Plano de marcação do Tenant |

#### TeamsCallingPolicy

Política de chamadas a atribuir. Deixe em branco para manter a atual ou insira Global (Padrão global da organização) para redefini-la.

| Propriedade                | Valor                |
| -------------------------- | -------------------- |
| Obrigatório                | falso                |
| Valor padrão               |                      |
| Tipo                       | Texto                |
| Nome de exibição no portal | Política de chamadas |

#### TeamsIPPhonePolicy

Política de telefone IP a atribuir, normalmente para telefones de áreas comuns. Deixe em branco para manter a atual ou insira Global (Padrão global da organização) para redefini-la.

| Propriedade                | Valor                   |
| -------------------------- | ----------------------- |
| Obrigatório                | falso                   |
| Valor padrão               |                         |
| Tipo                       | Texto                   |
| Nome de exibição no portal | Política de telefone IP |

[Voltar à visão geral da referência do runbook](https://docs.realmjoin.com/pt/automatizacao/runbooks/runbook-references.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmjoin.com/pt/automatizacao/runbooks/runbook-references/user/phone/set-teams-phone.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
