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"
}