Lưu ý quan trọng: Chúng tôi không còn chấp nhận các lượt đăng ký mới cho Play EMM API.
Tìm hiểu thêm.
Users: update
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cập nhật thông tin chi tiết về người dùng do EMM quản lý.
Chỉ có thể sử dụng với người dùng được quản lý bởi EMM (không phải người dùng do Google quản lý).
Truyền chi tiết mới vào
Người dùng
trong nội dung yêu cầu. Chỉ trường displayName
chỉnh sửa được. Bạn phải bỏ đặt các trường khác hoặc đặt giá trị
giá trị hiện đang hoạt động.
Yêu cầu
Yêu cầu HTTP
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId
Tham số
Tên thông số |
Giá trị |
Mô tả |
Tham số đường dẫn |
enterpriseId |
string |
Mã doanh nghiệp.
|
userId |
string |
Mã của người dùng.
|
Ủy quyền
Yêu cầu này cần được cho phép có phạm vi sau:
Phạm vi |
https://www.googleapis.com/auth/androidenterprise |
Để biết thêm thông tin, hãy xem trang xác thực và uỷ quyền.
Nội dung yêu cầu
Trong nội dung yêu cầu, hãy cung cấp Tài nguyên người dùng với các thuộc tính sau:
Tên tài sản |
Giá trị |
Mô tả |
Ghi chú |
Thuộc tính không bắt buộc |
displayName |
string |
Tên sẽ xuất hiện trong giao diện người dùng. Bạn không bắt buộc phải đặt thuộc tính này khi tạo người dùng do EMM quản lý. Nếu bạn đặt thuộc tính này, hãy sử dụng tên chung về tổ chức (chẳng hạn như "Example, Inc.") hoặc tên của bạn (như EMM). Không được sử dụng cho các tài khoản người dùng do Google quản lý. |
có thể ghi
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eUpdates the \u003ccode\u003edisplayName\u003c/code\u003e of an EMM-managed user, requiring authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request must be a \u003ccode\u003ePUT\u003c/code\u003e request sent to \u003ccode\u003ehttps://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId\u003c/code\u003e, replacing \u003ccode\u003eenterpriseId\u003c/code\u003e and \u003ccode\u003euserId\u003c/code\u003e with their respective values.\u003c/p\u003e\n"],["\u003cp\u003eOnly the \u003ccode\u003edisplayName\u003c/code\u003e field can be updated; all other fields must remain unchanged or unset.\u003c/p\u003e\n"],["\u003cp\u003eThis operation is exclusively for EMM-managed users and is not applicable to Google-managed users.\u003c/p\u003e\n"]]],[],null,["# Users: update\n\n| **Note:** Requires [authorization](#auth).\n\nUpdates the details of an EMM-managed user.\n\n\u003cbr /\u003e\n\n\nCan be used with EMM-managed users only (not Google managed users).\nPass the new details in the\n[Users](/android/work/play/emm-api/v1/users)\nresource in the request body. Only the `displayName` field\ncan be changed. Other fields must either be unset or have the\ncurrently active value.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|---------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| `userId` | `string` | The ID of the user. |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nIn the request body, supply a [Users resource](/android/work/play/emm-api/v1/users#resource) with the following properties:\n\n| Property name | Value | Description | Notes |\n|---------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|\n| **Optional Properties** ||||\n| `displayName` | `string` | The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as \"Example, Inc.\") or your name (as EMM). Not used for Google-managed user accounts. | writable |\n\nResponse\n--------\n\nIf successful, this method returns a [Users resource](/android/work/play/emm-api/v1/users#resource) in the response body."]]