atlas api customDatabaseRoles
On this page
experimental: Returns, adds, edits, and removes custom database user privilege roles.
Use custom roles to specify custom sets of actions that the MongoDB Cloud built-in roles can't describe. You define custom roles at the project level, for all clusters in the project. This resource supports a subset of MongoDB privilege actions. You can create a subset of custom role actions. To create a wider list of custom role actions, use the MongoDB Cloud user interface. Custom roles must include actions that all project's clusters support, and that are compatible with each MongoDB version that your project's clusters use. For example, if your project has MongoDB 4.2 clusters, you can't create custom roles that use actions introduced in MongoDB 4.4.
Options
Name | Type | Required | Description |
---|---|---|---|
-h, --help | false | help for customDatabaseRoles |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Name of the profile to use from your configuration file. To learn about profiles for the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings. |
Related Commands
atlas api customDatabaseRoles createCustomDatabaseRole - experimental: Creates one custom role in the specified project.
atlas api customDatabaseRoles deleteCustomDatabaseRole - experimental: Removes one custom role from the specified project.
atlas api customDatabaseRoles getCustomDatabaseRole - experimental: Returns one custom role for the specified project.
atlas api customDatabaseRoles listCustomDatabaseRoles - experimental: Returns all custom roles for the specified project.
atlas api customDatabaseRoles updateCustomDatabaseRole - experimental: Updates one custom role in the specified project.