View Source Auth0.Management.Groups (Auth0Api v2.5.0)

Facade for the Auth0 Management API Groups.

Summary

Functions

Assign roles to a group.

Delete a Group.

Get a Group.

Get all Groups.

Get a group's roles.

Remove roles from a group.

Types

@type config() :: Auth0.Config.t()
@type error() :: {:error, integer(), term()} | {:error, term()}

Functions

Link to this function

assign_roles(id, params, config)

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

Assign roles to a group.

Assign one or more roles to a specified group.

see

https://auth0.com/docs/api/management/v2/groups/post-group-roles

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

Delete a Group.

Delete a group by its ID.

see

https://auth0.com/docs/api/management/v2/groups/delete-group

@spec get(String.t(), config()) :: {:ok, map()} | error()

Get a Group.

Retrieve a group by its ID.

see

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

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

Get all Groups.

List all groups in your tenant.

see

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

Link to this function

list_members(id, params, config)

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

Get Group Members.

List all users that are a member of this group.

see

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

Link to this function

list_roles(id, params, config)

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

Get a group's roles.

Lists the roles assigned to a group.

see

https://auth0.com/docs/api/management/v2/groups/get-group-roles

Link to this function

remove_roles(id, params, config)

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

Remove roles from a group.

Unassign one or more roles from a specified group.

see

https://auth0.com/docs/api/management/v2/groups/delete-group-roles