Esempi di codice per l'API Chrome Management Third Party Profile Users
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Visita la pagina
API Chrome Management Third Party Profile Users
per una panoramica delle funzionalità dell'API.
Tutte le richieste mostrate in questa pagina utilizzano le seguenti variabili:
$TOKEN
- Token OAuth 2.0
$CUSTOMER
- ID del cliente o valore letterale my_customer
Spostare un utente del profilo di terze parti
Per spostare un utente del profilo di terze parti, utilizza l'endpoint
/thirdPartyProfileUsers/<third_party_profile_user_id>:move
.
Richiesta
curl -H "Authorization: Bearer $TOKEN" \
--json '{"destinationOrgUnit": "org_unit_id"}' \
"https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER/thirdPartyProfileUsers/<third_party_profile_user_id>:move"
Risposta
{
"name": "customers/<customerId>/thirdPartyProfileUsers/<third_party_profile_user_id>",
"orgUnitId": "org_unit_id"
}
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-08-25 UTC.
[null,null,["Ultimo aggiornamento 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 }"]]