How do I find the immutable id of my Google Apps account?

后端 未结 4 931
清歌不尽
清歌不尽 2020-12-18 22:28

Many of the Directory API calls require a customer parameter referred to as the \"Immutable id of the Google Apps account. (string)\".

e.g. GET http

4条回答
  •  清酒与你
    2020-12-18 22:40

    The easiest way I found was to use the APIs Explorer at the bottom of the documentation for the Customers: get method on the Directory API (Admin SDK). Enter 'my_customer' for the customerKey on the form and hit the 'Authorize and Execute' button.

    The response will include the CustomerId (e.g. Cxxxxxxxx) as the "id". The entire response will look something like this:

    {
      "kind": "admin#directory#customer",
      "id": string,
      "etag": etag,
      "customerDomain": string,
      "alternateEmail": string,
      "postalAddress": {
        "organizationName": string,
        "countryCode": string,
      },
      "language": string,
      "customerCreationTime": datetime
    }
    

提交回复
热议问题