大网数据广告活动
域与目录服务

Can't Modify User Mail or Phone Number Attributes

· 52CE 我爱测

Provides a solution to an issue where you can't modify certain personal information for another user.

This article provides a solution to an issue where you can't modify certain personal information for another user, such as mail and phone number.

Symptoms

You can't modify the following user attributes for another user:

  • mobilePhone
  • businessPhones/telephoneNumber
  • otherMails

Most users experiencing this issue are service principals (Microsoft Graph scenario) or Microsoft Entra users that use the client credentials grant type. Additionally, they get a 403 error.

Cause

This issue occurs due to insufficient permissions. For Microsoft Entra users, the User.ReadWrite.All permission can change a user profile except the three user attributes. For service principals (Microsoft Graph scenario), having the Directory.ReadWrite.All permission isn't sufficient to modify the three user attributes.

Solution

To resolve this issue, assign a Helpdesk Administrator, User Administrator, or Global Administrator role to the service principal or user that changes the three attributes, depending on the user that tries to modify the role. Only the three admin roles can make changes to the three attributes.

Caution: When you assign one of the three admin roles to the service principal or user, you give them the ability to perform tasks at that level.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 04/07/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。