Esempi di codice per l'API Chrome Management Third Party Profile Users

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