Learn to enable Organization connections using the Auth0 Dashboard and Management API.
You can enable specific connections for each organization to provide users with different login options. After you enable a connection, it is added to the organization login prompt, and users can authenticate through that connection to access your applications.To enable a connection for an organization, the connection must already exist in your tenant. Supported connections include database connections, social connections, and enterprise connections.
When using organizations, some connections have additional properties that you can configure:
Property
Connection Types
Description
Membership On Authentication
All connection types
When enabled, this property automatically assigns organization membership to end-users the first time they authenticate with the connection.
Membership on Authentication is useful in scenarios where all users with the ability to authenticate with a specific connection can be assumed to be members of an organization.
Organization Signup
Database connections only
This property determines whether or not end-users can access a signup link on the login prompt that allows them to gain membership to an Organization. To use Organization Signup, you must also enable Membership On Authentication.
Organization Signup is useful is scenarios where users need self-service access to join Organizations, such as:
When Organizations are used to model open-membership user populations such as workspaces.
In business-to-business-to-consumer (B2B2C) use cases where users can freely sign up for accounts.
Display connection as a button
Enterprise connections only
This optional property determines whether or not a specific connection displays as an option on the organization login prompt.
Note: If this option is disabled for a connection, end-users can still authenticate via the connection and log in to applications in the context of the organization by sending the connection parameter directly in the authorization request.
Select the Connections view, then select Enable Connections.
Choose the connection you want to enable, and select Enable Connection.
In the Authentication section, locate Membership On Authentication and choose whether to enable or disable auto-membership. When enabled, auto-membership automatically adds all users logging in with the connection as members of the organization.
For Database connections only: In the Organization Signup section, choose whether to enable or disable self-service signups. When enabled, users can access a signup link on the login prompt to create their account and automatically gain membership to the organization.
To enable this property, you must first enable Membership on Authentication.
Note: Organization Signup takes priority over the Database connection’s signup configuration. When Organization Signup is enabled, users can still sign up to an Organization or accept an Organization invite, even if signups are disabled at the Database connection level.
For Enterprise connections only: In the Connection button section, optionally enable the Display connection as a button property to display the connection as an option on the organization login prompt.
If all enabled connections within the Organization are enterprise connections, and all connections are hidden, Auth0 returns an error that reads Message: no connections enabled for the organization are visible when users access the application.
To enable a connection via the Management API:Make a POST call to the Create Organization Connections endpoint. Ensure you update the following placeholder values with the appropriate information:
Replace {orgId} with your organization ID.
Replace {mgmtApiAccessToken} with your Management API access token.
Replace {connectionId} with a specific connection ID.
Replace {assignMembershipOption} with true or false with respect to your Membership on Authentication selection.
For Database connections only: Replace {isSignupEnabled} with true or false with respect to your signup selection.
For Enterprise connections only: Replace {showAsButtonOption} with true or false with respect to your Connection Button selection.
Find Your Auth0 DomainIf your Auth0 domain is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus .auth0.com. For example, if your tenant name were travel0, your Auth0 domain name would be travel0.us.auth0.com. (If your tenant were in the US and created before June 2020, then your domain name would be https://travel0.auth0.com.)If you are using custom domains, this should be your custom domain name.
Value
Description
ID of the organization for which you want to enable a connection.
ID of the connection you want to enable for the specified organization.
Indicates whether you want users that log in with this connection to automatically be granted membership in the organization. When set to true, users will automatically be granted membership. When set to false, they will not automatically be granted membership.
Determines whether users can access a self-service signup link on the login prompt. When set to true, the signup link displays on the prompt. When set to false, the link remains hidden.
Note: To enable this option, you must also set to true.
Indicates whether you want a specific Enterprise connection to display as an option on the organization login prompt. When set to true, the connection displays as a button on the prompt. When set to false, the connection is hidden on the prompt.
Response status codes
Possible response status codes are as follows:
Status code
Error code
Message
Cause
201
Connection successfully added to organization.
401
Invalid token.
401
Invalid signature received for JSON Web Token validation.
401
Client is not global.
403
insufficient_scope
Insufficient scope; expected any of: create:organizations_connections.
Tried to read/write a field that is not allowed with provided bearer token scopes.
429
Too many requests. Check the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.