Code Samples for the Chrome Management Third Party Profile Users API

  • The Chrome Management Third Party Profile Users API allows moving third-party profile users.

  • The :move endpoint is used to move a third-party profile user.

  • Moving a user requires specifying the destination organizational unit ID in the request body.

  • Successful requests return the updated user resource with the new organizational unit ID.

Visit Chrome Management Third Party Profile Users API for an overview of API features.

All the requests shown in this page use the following variables:

  • $TOKEN - OAuth 2.0 token
  • $CUSTOMER - ID of the customer or literal my_customer

Move a Third Party Profile User

To move a third party profile user, use the /thirdPartyProfileUsers/<third_party_profile_user_id>:move endpoint.

Request

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

Response

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