Zum Hauptinhalt springen
POST
/
settings
/
v3
/
users
/
ユーザーを追加
curl --request POST \
  --url https://api.hubapi.com/settings/v3/users/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "newUser@email.com",
  "roleId": "100",
  "primaryTeamId": "101",
  "secondaryTeamIds": [
    "102"
  ],
  "sendWelcomeEmail": "true"
}'
{
  "id": "123",
  "email": "newUser@email.com",
  "roleId": "100",
  "primaryTeamId": "101",
  "secondaryTeamIds": [
    "102"
  ],
  "superAdmin": "false"
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -無料ツール
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -無料ツール
この API には、次のいずれかのスコープが必要です。
crm.objects.users.write
settings.users.write

Authorizations

Authorization
string
header
required

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

Body

application/json

A user creation request

email
string
required

ユーザーのEメール。

firstName
string

ユーザーの名前。

lastName
string

ユーザーの姓。

primaryTeamId
string

ユーザーのプライマリーチーム。

sendWelcomeEmail
boolean

ウェルカムEメールを送信するかどうか。

roleId
string

ユーザーの役割。

secondaryTeamIds
string[]

ユーザーの追加チーム。

Response

successful operation

A user

id
string
required

ユーザーの固有ID。

email
string
required

ユーザーのEメール。

firstName
string

ユーザーの名前。

lastName
string

ユーザーの姓。

primaryTeamId
string

ユーザーのプライマリーチーム

roleIds
string[]

ユーザーに割り当てられた役割IDのリスト。

sendWelcomeEmail
boolean

ウェルカムEメールがユーザーに送信されたかどうか。この値は、プロビジョニングリクエストへのレスポンスとしてのみ入力されます。後続のクエリーはfalseになります。

roleId
string

ユーザーの役割。

secondaryTeamIds
string[]

ユーザーの追加チーム。

superAdmin
boolean

ユーザーがスーパー管理者特権を持っているかどうか。