Custom role
A custom role is a user-defined authorization role with an explicitly selected set of permissions or privileges.
MongoDB 8.0 in Action, Third Edition
A custom role is a database role whose privileges are explicitly defined rather than inherited solely from a built-in role.
- How it is used
- Restricts MongoDB access to the actions, databases, and collections required by each user or application.
- How deep it goes
- Explains privilege scope, database placement, inheritance limits, and operational scenarios without detailing full role-management workflows.
- Examples
- Uses collection-level UPDATE and FIND privileges plus an analytics role inheriting read access.
- What you can do after
- Configure MongoDB access with narrowly scoped privileges and database-appropriate role inheritance.
Read how MongoDB 8.0 in Action, Third Edition explains custom role →
Azure Security
A custom role is an authorization configuration that grants a specifically selected set of permissions to users or other identities.
- How it is used
- Deploys granular Azure RBAC authorization when built-in roles would overpermission users or require multiple role assignments.
- How deep it goes
- Explains permission fields, scope selection, JSON creation, Azure CLI commands, assignment, and wildcard risks.
- Examples
- Uses a Restart Virtual Machines role, JSON permission definitions, Azure CLI commands, and representative creation and assignment output.
- What you can do after
- Build it from scratch by defining, creating, and assigning a least-privilege Azure RBAC role with JSON and Azure Cloud Shell.
100 SQL Server Mistakes and How to Avoid Them
A custom role is a user-defined SQL Server role with specifically selected permissions for a required task.
- How it is used
- Deploys narrowly scoped permissions when fixed server or database roles do not match a required task.
- How deep it goes
- Defines custom server and database roles, shows permission assignments, and cautions against overloading model.
- Examples
- Uses failover permissions and stored-procedure execution as concrete custom-role scenarios.
- What you can do after
- Build it from scratch using T-SQL grants and membership changes for narrowly defined server or database tasks.
Read how 100 SQL Server Mistakes and How to Avoid Them explains custom role →
Related concepts
- role-based access controlused by · Role-based access control is an authorization model that assigns permissions to roles and grants users or other principals access through their assigned roles.
- rolekind of · A role is a defined function, responsibility, perspective, or set of permissions associated with a participant in an organization or system.
- atlas customDbRoles createconfigured by · atlas customDbRoles create is an Atlas CLI command that creates a custom database role with specified privileges.
- role configurationkind of · A role configuration specifies a role and its associated responsibilities, permissions, or expected behavior within a system or organization.
- role hierarchypart of · A role hierarchy is an ordering of roles that establishes relative authority or precedence, and may determine which permissions or instructions take priority.
- scopeconfigured by · Scope is a defined boundary specifying which entities, activities, resources, or conditions are included or governed in a particular context.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


