Auth0.Management.Roles (Auth0Api v1.4.0) View Source
Documentation for Auth0 Management API of Roles.
endpoint
- /api/v2/roles
- /api/v2/roles/{id}
- /api/v2/roles/{id}/permissions
- /api/v2/roles/{id}/users
Link to this section Summary
Functions
Assign users to a role.
Associate permissions with a role.
Create a role.
Delete a role.
Get a role.
Get roles.
Get permissions granted by role.
Get a role's users.
Remove permissions from a role.
Update a role.
Link to this section Types
Specs
config() :: Auth0.Config.t()
Specs
Specs
id() :: String.t()
Specs
response_body() :: String.t()
Link to this section Functions
Specs
assign_users( id(), Auth0.Management.Roles.Users.Assign.Params.t() | map(), config() ) :: {:ok, String.t(), response_body()} | error()
Assign users to a role.
see
https://auth0.com/docs/api/management/v2/#!/Roles/post_role_users
Specs
associate_permissions( id(), Auth0.Management.Roles.Permissions.Associate.Params.t() | map(), config() ) :: {:ok, String.t(), response_body()} | error()
Associate permissions with a role.
see
https://auth0.com/docs/api/management/v2/#!/Roles/post_role_permission_assignment
Specs
create(Auth0.Management.Roles.Create.Params.t() | map(), config()) :: {:ok, Auth0.Entity.Role.t(), response_body()} | error()
Create a role.
see
https://auth0.com/docs/api/management/v2/#!/Roles/post_roles
Specs
delete(id(), config()) :: {:ok, String.t(), response_body()} | error()
Delete a role.
see
https://auth0.com/docs/api/management/v2/#!/Roles/delete_roles_by_id
Specs
get(id(), config()) :: {:ok, Auth0.Entity.Role.t(), response_body()} | error()
Get a role.
see
https://auth0.com/docs/api/management/v2/#!/Roles/get_roles_by_id
Specs
list(Auth0.Management.Roles.List.Params.t() | map(), config()) :: {:ok, Auth0.Entity.Roles.t(), response_body()} | error()
Get roles.
see
https://auth0.com/docs/api/management/v2/#!/Roles/get_roles
Specs
list_permissions( id(), Auth0.Management.Roles.Permissions.List.Params.t() | map(), config() ) :: {:ok, Auth0.Entity.Permissions.t(), response_body()} | error()
Get permissions granted by role.
see
https://auth0.com/docs/api/management/v2/#!/Roles/get_role_permission
Specs
list_users(id(), Auth0.Management.Roles.Users.List.Params.t() | map(), config()) :: {:ok, Auth0.Entity.Users.t(), response_body()} | error()
Get a role's users.
see
https://auth0.com/docs/api/management/v2/#!/Roles/get_role_user
Specs
remove_permissions( id(), Auth0.Management.Roles.Permissions.Remove.Params.t() | map(), config() ) :: {:ok, String.t(), response_body()} | error()
Remove permissions from a role.
see
https://auth0.com/docs/api/management/v2/#!/Roles/delete_role_permission_assignment
Specs
update(id(), Auth0.Management.Roles.Patch.Params.t() | map(), config()) :: {:ok, Auth0.Entity.Role.t(), response_body()} | error()
Update a role.
see
https://auth0.com/docs/api/management/v2/#!/Roles/patch_roles_by_id