Chrome 管理第三方配置文件用户 API 的代码示例
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如需大致了解 API 功能,请访问 Chrome Management Third Party Profile Users API。
本页面中显示的所有请求均使用以下变量:
$TOKEN
- OAuth 2.0 令牌
$CUSTOMER
- 客户的 ID 或字面值 my_customer
迁移第三方个人资料用户
如需迁移第三方配置文件用户,请使用 /thirdPartyProfileUsers/<third_party_profile_user_id>:move
端点。
请求
curl -H "Authorization: Bearer $TOKEN" \
--json '{"destinationOrgUnit": "org_unit_id"}' \
"https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER/thirdPartyProfileUsers/<third_party_profile_user_id>:move"
响应
{
"name": "customers/<customerId>/thirdPartyProfileUsers/<third_party_profile_user_id>",
"orgUnitId": "org_unit_id"
}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-25。
[null,null,["最后更新时间 (UTC):2025-08-25。"],[],[],null,["# Code Samples for the Chrome Management Third Party Profile Users API\n\nVisit\n[Chrome Management Third Party Profile Users API](/chrome/management/guides/thirdpartyprofileusers_api)\nfor an overview of API features.\n\nAll the requests shown in this page use the following variables:\n\n- `$TOKEN` - OAuth 2.0 token\n- `$CUSTOMER` - ID of the customer or literal `my_customer`\n\nMove a Third Party Profile User\n-------------------------------\n\nTo move a third party profile user, use the\n`/thirdPartyProfileUsers/\u003cthird_party_profile_user_id\u003e:move` endpoint.\n\n#### Request\n\n curl -H \"Authorization: Bearer $TOKEN\" \\\n --json '{\"destinationOrgUnit\": \"org_unit_id\"}' \\\n \"https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER/thirdPartyProfileUsers/\u003cthird_party_profile_user_id\u003e:move\"\n\n#### Response\n\n {\n \"name\": \"customers/\u003ccustomerId\u003e/thirdPartyProfileUsers/\u003cthird_party_profile_user_id\u003e\",\n \"orgUnitId\": \"org_unit_id\"\n }"]]