ตัวอย่างโค้ดสำหรับ 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"
}
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-25 UTC
[null,null,["อัปเดตล่าสุด 2025-08-25 UTC"],[],[],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 }"]]