MongoDB

MongoDB Authorization Model

Introduction#

Authorization is the basically verifies user privileges. MongoDB support different kind of authorization models.

  1. Role base access control

Role are group of privileges, actions over resources. That are gain to users over a given namespace (Database).

Actions are performs on resources. Resources are any object that hold state in database.

Build-in Roles

Built-in database user roles and database administration roles roles exist in each database.

Database User Roles

  1. read
  2. readwrite

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow