View Source Auth0.Management.Organizations (Auth0Api v2.2.0)

Summary

Functions

Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action.

Set one or more existing users as members of a specific Organization.

Assign one or more roles to a user to determine their access for a specific Organization.

Create a new Organization within your tenant.

Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization.

Remove an Organization from your tenant. This action cannot be undone.

Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate.

Delete an invitation to an Organization

Delete members from an organization

Remove one or more Organization-specific roles from a given user.

Retrieve details about a single Organization specified by ID.

Retrieve details about a single Organization specified by name.

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

Get a specific invitation to an Organization

Retrive detailed list of all Organizations available in your tenant.

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration.

List organization members.

Retrieve detailed list of roles assigned to a given user within the context of a specific Organization.

Update the details of a specific Organization, such as name and display name, branding options, and metadata.

Modify the details of a specific connection currently enabled for an Organization.

Types

@type config() :: Auth0.Config.t()
@type connection_id() :: String.t()
@type error() :: {:error, integer(), term()} | {:error, term()}
@type id() :: String.t()
@type invitation_id() :: String.t()
@type name() :: String.t()
@type user_id() :: String.t()

Functions

Link to this function

add_connection(id, params, config)

View Source
@spec add_connection(id(), map(), config()) :: {:ok, map()} | error()

Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action.

see

https://auth0.com/docs/api/management/v2/organizations/post-enabled-connections

Link to this function

add_members(id, params, config)

View Source
@spec add_members(id(), map(), config()) :: {:ok, String.t()} | error()

Set one or more existing users as members of a specific Organization.

see

https://auth0.com/docs/api/management/v2/organizations/post-members

Link to this function

assign_roles(id, user_id, params, config)

View Source
@spec assign_roles(id(), user_id(), map(), config()) :: {:ok, String.t()} | error()

Assign one or more roles to a user to determine their access for a specific Organization.

see

https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles

@spec create(map(), config()) :: {:ok, map()} | error()

Create a new Organization within your tenant.

see

https://auth0.com/docs/api/management/v2/organizations/post-organizations

Link to this function

create_invitation(id, params, config)

View Source
@spec create_invitation(id(), map(), config()) :: {:ok, map()} | error()

Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization.

see

https://auth0.com/docs/api/management/v2/organizations/post-invitations

@spec delete(id(), config()) :: {:ok, String.t()} | error()

Remove an Organization from your tenant. This action cannot be undone.

see

https://auth0.com/docs/api/management/v2/organizations/delete-organizations-by-id

Link to this function

delete_connection(id, connection_id, config)

View Source
@spec delete_connection(id(), connection_id(), config()) ::
  {:ok, String.t()} | error()

Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate.

see

https://auth0.com/docs/api/management/v2/organizations/delete-enabled-connections-by-connection-id

Link to this function

delete_invitation(id, invitation_id, config)

View Source
@spec delete_invitation(id(), invitation_id(), config()) ::
  {:ok, String.t()} | error()

Delete an invitation to an Organization

see

https://auth0.com/docs/api/management/v2/organizations/delete-invitations-by-invitation-id

Link to this function

delete_members(id, params, config)

View Source
@spec delete_members(id(), map(), config()) :: {:ok, String.t()} | error()

Delete members from an organization

see

https://auth0.com/docs/api/management/v2/organizations/delete-members

Link to this function

delete_roles(id, user_id, params, config)

View Source
@spec delete_roles(id(), user_id(), map(), config()) :: {:ok, String.t()} | error()

Remove one or more Organization-specific roles from a given user.

see

https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles

@spec get(id(), config()) :: {:ok, map()} | error()

Retrieve details about a single Organization specified by ID.

see

https://auth0.com/docs/api/management/v2/organizations/get-organizations-by-id

Link to this function

get_by_name(name, config)

View Source
@spec get_by_name(name(), config()) :: {:ok, map()} | error()

Retrieve details about a single Organization specified by name.

see

https://auth0.com/docs/api/management/v2/organizations/get-name-by-name

Link to this function

get_connection(id, connection_id, config)

View Source
@spec get_connection(id(), connection_id(), config()) :: {:ok, map()} | error()

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

see

https://auth0.com/docs/api/management/v2/organizations/get-enabled-connections-by-connection-id

Link to this function

get_invitation(id, invitation_id, params, config)

View Source
@spec get_invitation(id(), invitation_id(), map(), config()) :: {:ok, map()} | error()

Get a specific invitation to an Organization

see

https://auth0.com/docs/api/management/v2/organizations/get-invitations-by-invitation-id

@spec list(map(), config()) :: {:ok, [map()] | map()} | error()

Retrive detailed list of all Organizations available in your tenant.

see

https://auth0.com/docs/api/management/v2/organizations/get-organizations

Link to this function

list_connections(id, params, config)

View Source
@spec list_connections(id(), map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

see

https://auth0.com/docs/api/management/v2/organizations/get-enabled-connections

Link to this function

list_invitations(id, params, config)

View Source
@spec list_invitations(id(), map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration.

see

https://auth0.com/docs/api/management/v2/organizations/get-invitations

Link to this function

list_members(id, params, config)

View Source
@spec list_members(id(), map(), config()) :: {:ok, [map()] | map()} | error()

List organization members.

see

https://auth0.com/docs/api/management/v2/organizations/get-members

Link to this function

list_roles(id, user_id, params, config)

View Source
@spec list_roles(id(), user_id(), map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve detailed list of roles assigned to a given user within the context of a specific Organization.

see

https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles

Link to this function

modify(id, params, config)

View Source
@spec modify(id(), map(), config()) :: {:ok, map()} | error()

Update the details of a specific Organization, such as name and display name, branding options, and metadata.

see

https://auth0.com/docs/api/management/v2/organizations/patch-organizations-by-id

Link to this function

modify_connection(id, connection_id, params, config)

View Source
@spec modify_connection(id(), connection_id(), map(), config()) ::
  {:ok, map()} | error()

Modify the details of a specific connection currently enabled for an Organization.

see

https://auth0.com/docs/api/management/v2/organizations/patch-enabled-connections-by-connection-id