メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
organizations
/
{id}
/
enabled_connections
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
    organizations "github.com/auth0/go-auth0/management/management/organizations"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &organizations.AddOrganizationConnectionRequestContent{
        ConnectionId: "connection_id",
    }
    client.Organizations.EnabledConnections.Add(
        context.TODO(),
        "id",
        request,
    )
}
{
  "assign_membership_on_login": true,
  "connection": {
    "name": "<string>",
    "strategy": "<string>"
  },
  "connection_id": "<string>",
  "is_signup_enabled": true,
  "show_as_button": true
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

組織の識別子。

Maximum string length: 50

ボディ

connection_id
string<connection-id>
必須

組織に追加する単一の接続 ID。

assign_membership_on_login
boolean

true の場合、この接続でログインするすべてのユーザーに組織のメンバーシップが自動的に付与されます。false の場合、この接続でログインする前に、ユーザーに組織のメンバーシップを付与しておく必要があります。

is_signup_enabled
boolean

この組織接続で組織のサインアップを有効にするかどうかを指定します。データベース接続にのみ適用されます。デフォルト: false。

show_as_button
boolean

この組織のログインプロンプトに接続を表示するかどうかを指定します。エンタープライズ接続にのみ適用されます。デフォルト: true。

レスポンス

Organization の接続が正常に追加されました。

assign_membership_on_login
boolean

true の場合、この接続でログインするすべてのユーザーに組織のメンバーシップが自動的に付与されます。false の場合、この接続でログインする前に、ユーザーに組織のメンバーシップを付与しておく必要があります。

connection
object
connection_id
string

接続の ID。

is_signup_enabled
boolean

この組織接続で組織のサインアップを有効にするかどうかを指定します。データベース接続にのみ適用されます。デフォルト: false。

show_as_button
boolean

この組織のログインプロンプトに接続を表示するかどうかを指定します。エンタープライズ接続にのみ適用されます。デフォルト: true。