# Cambiar nombre de usuario

### Descripción

Cambia el nombre de un usuario modificando el nombre principal de usuario en Microsoft Entra ID y, opcionalmente, actualiza las propiedades del buzón en Exchange Online. Esto no actualiza los metadatos del usuario, como el nombre para mostrar, el nombre o los apellidos.

### Ubicación

Usuario → Información del usuario → Cambiar nombre de usuario

**Nombre completo del runbook**

rjgit-user\_userinfo\_rename-user

### Permisos

#### Permisos de aplicación

* **Tipo**: Microsoft Graph
  * Directory.Read.All
  * User.ReadWrite.All
* **Tipo**: Office 365 Exchange Online
  * Exchange.ManageAsApp

#### RBAC roles

* Administrador de Exchange

### Parámetros

#### UserName

Nombre principal de usuario del usuario o buzón cuyo nombre se va a cambiar.

| Propiedad            | Valor  |
| -------------------- | ------ |
| Requerido            | true   |
| Valor predeterminado |        |
| Tipo                 | Cadena |

#### NewUpn

Nuevo nombre principal de usuario que se establecerá.

| Propiedad            | Valor  |
| -------------------- | ------ |
| Requerido            | true   |
| Valor predeterminado |        |
| Tipo                 | Cadena |

#### ChangeMailnickname

Si se establece en verdadero, actualiza el alias y el nombre del buzón según el nuevo UPN.

| Propiedad            | Valor   |
| -------------------- | ------- |
| Requerido            | false   |
| Valor predeterminado | True    |
| Tipo                 | Boolean |

#### UpdatePrimaryAddress

Si se establece en verdadero, actualiza la dirección SMTP principal y reescribe las direcciones de correo electrónico en consecuencia.

| Propiedad            | Valor   |
| -------------------- | ------- |
| Requerido            | false   |
| Valor predeterminado | True    |
| Tipo                 | Boolean |

[Volver a la vista general de referencia del runbook](/es/automatizacion/runbooks/runbook-references.md)


---

# 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://docs.realmjoin.com/es/automatizacion/runbooks/runbook-references/user/userinfo/rename-user.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.
