ตัวอย่างโค้ดสำหรับ Chrome Management Third Party Profile Users API

ไปที่ Chrome Management Third Party Profile Users API เพื่อดูภาพรวมของฟีเจอร์ API

คำขอทั้งหมดที่แสดงในหน้านี้ใช้ตัวแปรต่อไปนี้

  • $TOKEN - โทเค็น OAuth 2.0
  • $CUSTOMER - รหัสของลูกค้าหรือค่าตามตัวอักษร 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"
}