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 →
Also covered in
- Snowflake Data Engineering
- WordPress Power Toolkit: Harness AI to build next-level websites
- Microsoft Azure in Action
Related concepts
- rolekind of · A role is a defined function or status assigned to a participant that specifies responsibilities, permissions, behavior, or perspective within a system or organization.
- 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.
- 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.
- identitypart of · Identity is the property or information by which an entity is distinguished and recognized as a particular entity, apart from the equality of its current attributes or state.
Questions about custom role
What is custom role?
A custom role is a user-defined authorization role with an explicitly selected set of permissions or privileges.
Which Manning books explain custom role?
MongoDB 8.0 in Action, Third Edition, Azure Security and 100 SQL Server Mistakes and How to Avoid Them.
What is custom role a kind of?
Custom role is a kind of role. A role is a defined function or status assigned to a participant that specifies responsibilities, permissions, behavior, or perspective within a system or organization.
What is custom role part of?
Custom role is part of role hierarchy. A role hierarchy is an ordering of roles that establishes relative authority or precedence, and may determine which permissions or instructions take priority.
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.


