cipp_edit_user
Edit Azure AD user properties: update attributes, assign or remove licenses, set usage location. Reversible by re-editing.
Instructions
⚠ HIGH-IMPACT. Edits an existing user's properties, which can include directory attributes, usage location, and may grant or revoke roles or license eligibility. Reversible by editing again. Confirm with the user before invoking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | The user's Azure AD object ID or UPN to identify the account to modify. | |
| jobTitle | No | Updated job title for the user. | |
| licenses | No | License SKU GUIDs the user should hold after the edit (CIPP reconciles: missing SKUs are added, extra assigned SKUs are removed). Use cipp_list_licenses to discover SKU ids. Mutually exclusive with removeLicenses=true. | |
| department | No | Updated department for the user. | |
| displayName | No | Updated full display name for the user. | |
| tenantFilter | Yes | Tenant domain name or ID to scope the operation. Use 'allTenants' to target every managed tenant. | |
| usageLocation | No | Two-letter ISO 3166-1 alpha-2 country code for license assignment eligibility (e.g. 'US'). Required before assigning most Microsoft 365 licences. | |
| removeLicenses | No | ⚠ When true, strips EVERY license assigned to the user. Mutually exclusive with a non-empty licenses list. |