Zum Hauptinhalt springen
GET
/
business-units
/
v3
/
business-units
/
user
/
{userId}
ユーザーのビジネスユニットを取得
curl --request GET \
  --url https://api.hubapi.com/business-units/v3/business-units/user/{userId} \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "logoMetadata": {
        "logoAltText": "logo sample text",
        "resizedUrl": "sillystring",
        "logoUrl": "examplelogourl.com"
      },
      "name": "sample business unit name",
      "id": "101"
    }
  ]
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -Enterprise
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -無料ツール
この API には、次のいずれかのスコープが必要です。
business_units_view.read

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

userId
string
required

取得するユーザーのID。

Query Parameters

properties
string[]

オプションとしてレスポンス本文に含めることができるプロパティの名前。有効な値は「logoMetadata」のみです。

name
string[]

取得するビジネスユニットの名前。空白であるか、または指定されていない場合は、関連付けられた全てのビジネスユニットが返されます。

Response

successful operation

A response object containing a collection of Business Units

results
object[]
required

ビジネスユニットのコレクション