Mã mẫu cho Chrome Management Third Party Profile Users API

Truy cập vào Chrome Management Third Party Profile Users API để xem tổng quan về các tính năng của API.

Tất cả các yêu cầu xuất hiện trên trang này đều sử dụng các biến sau:

  • $TOKEN – Mã thông báo OAuth 2.0
  • $CUSTOMER – Mã nhận dạng của khách hàng hoặc giá trị cố định my_customer

Di chuyển người dùng hồ sơ bên thứ ba

Để di chuyển người dùng hồ sơ bên thứ ba, hãy sử dụng điểm cuối /thirdPartyProfileUsers/<third_party_profile_user_id>:move.

Yêu cầu

curl -H "Authorization: Bearer $TOKEN" \
--json '{"destinationOrgUnit": "org_unit_id"}' \
  "https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER/thirdPartyProfileUsers/<third_party_profile_user_id>:move"

Phản hồi

{
  "name": "customers/<customerId>/thirdPartyProfileUsers/<third_party_profile_user_id>",
  "orgUnitId": "org_unit_id"
}