<section>
 <h1 class="contains-headerlink leafygreen-ui-41fr9s" weight="medium">
  Built-In Roles in Self-Managed Deployments
  <a class="headerlink leafygreen-ui-1kepx47" href="#built-in-roles-in-self-managed-deployments" title="Permalink to this heading">
   <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
    <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
    </path>
    <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
    </path>
   </svg>
   <div class="css-1btu0w3 evvkmar0" id="built-in-roles-in-self-managed-deployments">
   </div>
  </a>
 </h1>
 <div class="leafygreen-ui-a5yxub">
  <p class="css-1cmx2d4 ef7gu8j0">
   On this page
  </p>
  <ul class="css-1qb0mst ef7gu8j1">
   <li class="leafygreen-ui-1e7a0ei">
    <a class="lg-ui-0001 leafygreen-ui-e98ikf" href="#mongodb-atlas-built-in-roles" target="_self">
     <span>
      MongoDB Atlas Built-In Roles
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#self-hosted-deployment-built-in-roles" target="_self">
     <span>
      Self-Hosted Deployment Built-In Roles
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#database-user-roles" target="_self">
     <span>
      Database User Roles
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#database-administration-roles" target="_self">
     <span>
      Database Administration Roles
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#cluster-administration-roles" target="_self">
     <span>
      Cluster Administration Roles
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#backup-and-restoration-roles" target="_self">
     <span>
      Backup and Restoration Roles
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#all-database-roles" target="_self">
     <span>
      All-Database Roles
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#superuser-roles" target="_self">
     <span>
      Superuser Roles
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#internal-role" target="_self">
     <span>
      Internal Role
     </span>
    </a>
   </li>
  </ul>
 </div>
 <p class="leafygreen-ui-1kp3ins">
  MongoDB grants access to data and commands through
  <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/authorization/#std-label-roles">
   role-based
authorization
  </a>
  and provides built-in roles that provide the different
levels of access commonly needed in a database system. You can additionally
create
  <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-user-defined-roles/#std-label-user-defined-roles">
   user-defined roles
   <!-- -->
   .
  </a>
 </p>
 <p class="leafygreen-ui-1kp3ins">
  A role grants privileges to perform sets of
  <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#std-label-security-user-actions">
   actions
  </a>
  on defined
  <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-resource-document">
   resources
  </a>
  . A
given role applies to the database on which it is defined and can grant access
down to a collection level of granularity.
 </p>
 <p class="leafygreen-ui-1kp3ins">
  <em>
   System collections
  </em>
  include those in:
 </p>
 <ul class="leafygreen-ui-rioki0">
  <li class="leafygreen-ui-d7p7b6">
   <p class="leafygreen-ui-1kp3ins">
    <code class="leafygreen-ui-1l06pbn">
     &lt;database&gt;.system.*
    </code>
    namespace
   </p>
  </li>
  <li class="leafygreen-ui-d7p7b6">
   <p class="leafygreen-ui-1kp3ins">
    <code class="leafygreen-ui-1l06pbn">
     local.replset.*
    </code>
    replica set namespace
   </p>
  </li>
 </ul>
 <p class="leafygreen-ui-1kp3ins">
  For details, see
  <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#std-label-metadata-system-collections">
   System Collections
   <!-- -->
   .
  </a>
 </p>
 <p class="leafygreen-ui-1kp3ins">
  <em>
   Non-system collections
  </em>
  are those not in namespaces in the previous
list.
 </p>
 <p class="leafygreen-ui-1kp3ins">
  Each of MongoDB's built-in roles defines access at the database level for all
  <em>
   non
  </em>
  -system collections in the role's database and at the collection level
for all system collections.
 </p>
 <p class="leafygreen-ui-1kp3ins">
  This section describes the privileges for each built-in role. You can also
view the privileges for a built-in role at any time by issuing the
  <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/rolesInfo/#mongodb-dbcommand-dbcmd.rolesInfo">
   <code class="leafygreen-ui-1l06pbn">
    rolesInfo
   </code>
  </a>
  command with the
  <code class="leafygreen-ui-1l06pbn">
   showPrivileges
  </code>
  and
  <code class="leafygreen-ui-1l06pbn">
   showBuiltinRoles
  </code>
  fields both set to
  <code class="leafygreen-ui-1l06pbn">
   true
  </code>
  .
 </p>
 <p class="leafygreen-ui-1kp3ins">
  MongoDB Atlas deployments have different built-in roles than self-hosted
deployments. See the following resources to learn more:
 </p>
 <ul class="leafygreen-ui-rioki0">
  <li class="leafygreen-ui-d7p7b6">
   <p class="leafygreen-ui-1kp3ins">
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-atlas-built-in-roles" target="_self">
     <span>
      MongoDB Atlas Built-In Roles
     </span>
    </a>
   </p>
  </li>
  <li class="leafygreen-ui-d7p7b6">
   <p class="leafygreen-ui-1kp3ins">
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-self-hosted-built-in-roles" target="_self">
     <span>
      Self-Hosted Deployment Built-In Roles
     </span>
    </a>
   </p>
  </li>
 </ul>
 <span class="leafygreen-ui-1qnjd6d" id="std-label-atlas-built-in-roles">
 </span>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   MongoDB Atlas Built-In Roles
   <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-atlas-built-in-roles" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="mongodb-atlas-built-in-roles">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   For the built-in database user roles for deployments hosted in
MongoDB Atlas, see
   <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/atlas/mongodb-users-roles-and-privileges/" target="_self">
    <span>
     Altas Built-In Roles and Privileges
     <!-- -->
     .
    </span>
   </a>
  </p>
  <p class="leafygreen-ui-1kp3ins">
   You can create database users and assign built-in roles in the MongoDB Atlas
user interface. To learn more, see
   <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/atlas/security-add-mongodb-users/#add-database-users" target="_self">
    <span>
     Add Database Users
     <!-- -->
     .
    </span>
   </a>
  </p>
  <span class="leafygreen-ui-1qnjd6d" id="std-label-self-hosted-built-in-roles">
  </span>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Self-Hosted Deployment Built-In Roles
   <a class="headerlink leafygreen-ui-1kepx47" href="#self-hosted-deployment-built-in-roles" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="self-hosted-deployment-built-in-roles">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   MongoDB provides the following built-in roles for self-hosted
deployments:
  </p>
  <ul class="leafygreen-ui-rioki0">
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-database-user-roles" target="_self">
      <span>
       Database user
      </span>
     </a>
     and
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-database-administration-roles" target="_self">
      <span>
       database administration
      </span>
     </a>
     roles
on
     <em>
      every
     </em>
     database
    </p>
   </li>
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     All other roles only on the
     <code class="leafygreen-ui-1l06pbn">
      admin
     </code>
     database
    </p>
   </li>
  </ul>
  <span class="leafygreen-ui-1qnjd6d" id="std-label-database-user-roles">
  </span>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Database User Roles
    <a class="headerlink leafygreen-ui-1kepx47" href="#database-user-roles" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="database-user-roles">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    Every database includes the following client roles:
   </p>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      read
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-read" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-read">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the ability to read data on all
      <em>
       non
      </em>
      -system collections and
the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.js">
       <code class="leafygreen-ui-1l06pbn">
        system.js
       </code>
      </a>
      collection.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        The role does not provide privileges to directly access the
        <code class="leafygreen-ui-1l06pbn">
         system.namespaces
        </code>
        collection directly.
       </p>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      The role provides read access by granting the following
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#std-label-security-user-actions">
       actions
       <!-- -->
       :
      </a>
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-changeStream">
         <code class="leafygreen-ui-1l06pbn">
          changeStream
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
         <code class="leafygreen-ui-1l06pbn">
          collStats
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
         <code class="leafygreen-ui-1l06pbn">
          dbHash
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
         <code class="leafygreen-ui-1l06pbn">
          dbStats
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
         <code class="leafygreen-ui-1l06pbn">
          find
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
         <code class="leafygreen-ui-1l06pbn">
          killCursors
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
         <code class="leafygreen-ui-1l06pbn">
          listCollections
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
         <code class="leafygreen-ui-1l06pbn">
          listIndexes
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
         <code class="leafygreen-ui-1l06pbn">
          listSearchIndexes
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      If the user does not have the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listDatabases">
       <code class="leafygreen-ui-1l06pbn">
        listDatabases
       </code>
      </a>
      privilege action, users can run the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/listDatabases/#mongodb-dbcommand-dbcmd.listDatabases">
       <code class="leafygreen-ui-1l06pbn">
        listDatabases
       </code>
      </a>
      command to return a list of databases for which the user has
privileges (including databases for which the user has privileges
on specific collections) if the command is run with
      <code class="leafygreen-ui-1l06pbn">
       authorizedDatabases
      </code>
      option unspecified or set to
      <code class="leafygreen-ui-1l06pbn">
       true
      </code>
      .
     </p>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      readWrite
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-readWrite" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-readWrite">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides all the privileges of the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-read" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         read
        </code>
       </span>
      </a>
      role plus ability to
modify data on all
      <em>
       non
      </em>
      -system collections and the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.js">
       <code class="leafygreen-ui-1l06pbn">
        system.js
       </code>
      </a>
      collection.
     </p>
     <span class="leafygreen-ui-1qnjd6d" id="std-label-manual-reference-role-read-write">
     </span>
     <p class="leafygreen-ui-1kp3ins">
      The role provides the following actions on those collections:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-changeStream">
         <code class="leafygreen-ui-1l06pbn">
          changeStream
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
         <code class="leafygreen-ui-1l06pbn">
          collStats
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-convertToCapped">
         <code class="leafygreen-ui-1l06pbn">
          convertToCapped
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createCollection">
         <code class="leafygreen-ui-1l06pbn">
          createCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createIndex">
         <code class="leafygreen-ui-1l06pbn">
          createIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createSearchIndexes">
         <code class="leafygreen-ui-1l06pbn">
          createSearchIndexes
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
         <code class="leafygreen-ui-1l06pbn">
          dbHash
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
         <code class="leafygreen-ui-1l06pbn">
          dbStats
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropCollection">
         <code class="leafygreen-ui-1l06pbn">
          dropCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropIndex">
         <code class="leafygreen-ui-1l06pbn">
          dropIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropSearchIndex">
         <code class="leafygreen-ui-1l06pbn">
          dropSearchIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
         <code class="leafygreen-ui-1l06pbn">
          find
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
         <code class="leafygreen-ui-1l06pbn">
          insert
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
         <code class="leafygreen-ui-1l06pbn">
          killCursors
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
         <code class="leafygreen-ui-1l06pbn">
          listCollections
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
         <code class="leafygreen-ui-1l06pbn">
          listIndexes
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
         <code class="leafygreen-ui-1l06pbn">
          listSearchIndexes
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-remove">
         <code class="leafygreen-ui-1l06pbn">
          remove
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-renameCollectionSameDB">
         <code class="leafygreen-ui-1l06pbn">
          renameCollectionSameDB
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-update">
         <code class="leafygreen-ui-1l06pbn">
          update
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-updateSearchIndex">
         <code class="leafygreen-ui-1l06pbn">
          updateSearchIndex
         </code>
        </a>
       </p>
      </li>
     </ul>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-database-administration-roles">
   </span>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Database Administration Roles
    <a class="headerlink leafygreen-ui-1kepx47" href="#database-administration-roles" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="database-administration-roles">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    Every database includes the following database administration roles:
   </p>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      dbAdmin
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-dbAdmin" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-dbAdmin">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the ability to perform administrative tasks such as
schema-related tasks, indexing, and gathering statistics. This role
does not grant privileges for user and role management.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Specifically, the role provides the following privileges:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width:35%"/>
        <col style="width:65%"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Resource
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Permitted Actions
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
             <code class="leafygreen-ui-1l06pbn">
              system.profile
             </code>
            </a>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <table class="hlist">
             <tbody>
              <tr>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-changeStream">
                    <code class="leafygreen-ui-1l06pbn">
                     changeStream
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
                    <code class="leafygreen-ui-1l06pbn">
                     collStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-convertToCapped">
                    <code class="leafygreen-ui-1l06pbn">
                     convertToCapped
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createCollection">
                    <code class="leafygreen-ui-1l06pbn">
                     createCollection
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
                    <code class="leafygreen-ui-1l06pbn">
                     dbHash
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
                    <code class="leafygreen-ui-1l06pbn">
                     dbStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropCollection">
                    <code class="leafygreen-ui-1l06pbn">
                     dropCollection
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
                    <code class="leafygreen-ui-1l06pbn">
                     find
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
                    <code class="leafygreen-ui-1l06pbn">
                     killCursors
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
                    <code class="leafygreen-ui-1l06pbn">
                     listCollections
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listSearchIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
                    <code class="leafygreen-ui-1l06pbn">
                     planCacheRead
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
              </tr>
             </tbody>
            </table>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            All
            <em>
             non
            </em>
            -system collections (i.e.
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-resource-specific-db">
             database resource
             <!-- -->
             )
            </a>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <table class="hlist">
             <tbody>
              <tr>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-bypassDocumentValidation">
                    <code class="leafygreen-ui-1l06pbn">
                     bypassDocumentValidation
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collMod">
                    <code class="leafygreen-ui-1l06pbn">
                     collMod
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
                    <code class="leafygreen-ui-1l06pbn">
                     collStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-compact">
                    <code class="leafygreen-ui-1l06pbn">
                     compact
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-convertToCapped">
                    <code class="leafygreen-ui-1l06pbn">
                     convertToCapped
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createCollection">
                    <code class="leafygreen-ui-1l06pbn">
                     createCollection
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createIndex">
                    <code class="leafygreen-ui-1l06pbn">
                     createIndex
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createSearchIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     createSearchIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
                    <code class="leafygreen-ui-1l06pbn">
                     dbStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropCollection">
                    <code class="leafygreen-ui-1l06pbn">
                     dropCollection
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropDatabase">
                    <code class="leafygreen-ui-1l06pbn">
                     dropDatabase
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropIndex">
                    <code class="leafygreen-ui-1l06pbn">
                     dropIndex
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropSearchIndex">
                    <code class="leafygreen-ui-1l06pbn">
                     dropSearchIndex
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-enableProfiler">
                    <code class="leafygreen-ui-1l06pbn">
                     enableProfiler
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
                    <code class="leafygreen-ui-1l06pbn">
                     listCollections
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listSearchIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheIndexFilter">
                    <code class="leafygreen-ui-1l06pbn">
                     planCacheIndexFilter
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
                    <code class="leafygreen-ui-1l06pbn">
                     planCacheRead
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheWrite">
                    <code class="leafygreen-ui-1l06pbn">
                     planCacheWrite
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-reIndex">
                    <code class="leafygreen-ui-1l06pbn">
                     reIndex
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-renameCollectionSameDB">
                    <code class="leafygreen-ui-1l06pbn">
                     renameCollectionSameDB
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-storageDetails">
                    <code class="leafygreen-ui-1l06pbn">
                     storageDetails
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-updateSearchIndex">
                    <code class="leafygreen-ui-1l06pbn">
                     updateSearchIndex
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-validate">
                    <code class="leafygreen-ui-1l06pbn">
                     validate
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
              </tr>
             </tbody>
            </table>
            <p class="leafygreen-ui-1kp3ins">
             For these collections,
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-dbAdmin" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                dbAdmin
               </code>
              </span>
             </a>
             <em>
              does not
             </em>
             include
full read access (i.e.
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
              <code class="leafygreen-ui-1l06pbn">
               find
              </code>
             </a>
             ).
            </p>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      dbOwner
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-dbOwner" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-dbOwner">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      The database owner can perform any administrative action on the database.
This role combines the privileges granted by the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-readWrite" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         readWrite
        </code>
       </span>
      </a>
      ,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-dbAdmin" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         dbAdmin
        </code>
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdmin" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         userAdmin
        </code>
       </span>
      </a>
      roles.
     </p>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      userAdmin
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-userAdmin" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-userAdmin">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the ability to create and modify roles and users on the
current database. Since the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdmin" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         userAdmin
        </code>
       </span>
      </a>
      role allows
users to grant any privilege to any user, including themselves,
the role also indirectly provides
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-superuser" target="_self">
       <span>
        superuser
       </span>
      </a>
      access to either the database or, if scoped to the
      <code class="leafygreen-ui-1l06pbn">
       admin
      </code>
      database, the cluster.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdmin" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         userAdmin
        </code>
       </span>
      </a>
      role explicitly provides the following actions:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-changeCustomData">
         <code class="leafygreen-ui-1l06pbn">
          changeCustomData
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-changePassword">
         <code class="leafygreen-ui-1l06pbn">
          changePassword
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createRole">
         <code class="leafygreen-ui-1l06pbn">
          createRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createUser">
         <code class="leafygreen-ui-1l06pbn">
          createUser
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropRole">
         <code class="leafygreen-ui-1l06pbn">
          dropRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropUser">
         <code class="leafygreen-ui-1l06pbn">
          dropUser
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-grantRole">
         <code class="leafygreen-ui-1l06pbn">
          grantRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-revokeRole">
         <code class="leafygreen-ui-1l06pbn">
          revokeRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-setAuthenticationRestriction">
         <code class="leafygreen-ui-1l06pbn">
          setAuthenticationRestriction
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-viewRole">
         <code class="leafygreen-ui-1l06pbn">
          viewRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-viewUser">
         <code class="leafygreen-ui-1l06pbn">
          viewUser
         </code>
        </a>
       </p>
      </li>
     </ul>
     <div class="leafygreen-ui-1sjx7ru" role="note">
      <h2 class="leafygreen-ui-29m78u">
       Warning
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        It is important to understand the security implications of granting the
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdmin" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           userAdmin
          </code>
         </span>
        </a>
        role: a user with this role for a database can
assign themselves any privilege on that database. Granting the
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdmin" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           userAdmin
          </code>
         </span>
        </a>
        role on the
        <code class="leafygreen-ui-1l06pbn">
         admin
        </code>
        database has further
security implications as this indirectly provides
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-superuser" target="_self">
         <span>
          superuser
         </span>
        </a>
        access to a cluster. With
        <code class="leafygreen-ui-1l06pbn">
         admin
        </code>
        scope a user with the
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdmin" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           userAdmin
          </code>
         </span>
        </a>
        role can grant cluster-wide
roles or privileges including
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdminAnyDatabase" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           userAdminAnyDatabase
          </code>
          .
         </span>
        </a>
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-cluster-admin-roles">
   </span>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-admin-roles">
   </span>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Cluster Administration Roles
    <a class="headerlink leafygreen-ui-1kepx47" href="#cluster-administration-roles" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="cluster-administration-roles">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    The
    <code class="leafygreen-ui-1l06pbn">
     admin
    </code>
    database includes the following roles for administering the
whole system rather than just a single database. These roles include but are
not limited to
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-replica-set">
     replica set
    </a>
    and
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-sharded-cluster">
     sharded cluster
    </a>
    administrative
functions.
   </p>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      clusterAdmin
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-clusterAdmin" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-clusterAdmin">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the greatest cluster-management access. This role combines the
privileges granted by the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterManager" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterManager
        </code>
       </span>
      </a>
      ,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterMonitor" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterMonitor
        </code>
       </span>
      </a>
      , and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-hostManager" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         hostManager
        </code>
       </span>
      </a>
      roles.
Additionally, the role provides the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropDatabase">
       <code class="leafygreen-ui-1l06pbn">
        dropDatabase
       </code>
      </a>
      action.
     </p>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      clusterManager
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-clusterManager" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-clusterManager">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides management and monitoring actions on the cluster. A
user with this role can access the
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      databases, which are used in sharding and replication,
respectively. Additionally, the role provides the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-querySettings">
       <code class="leafygreen-ui-1l06pbn">
        querySettings
       </code>
      </a>
      action.
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width:30%"/>
        <col style="width:70%"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Resource
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Actions
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-resource-cluster">
             cluster
            </a>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <table class="hlist">
             <tbody>
              <tr>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-addShard">
                    <code class="leafygreen-ui-1l06pbn">
                     addShard
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-appendOplogNote">
                    <code class="leafygreen-ui-1l06pbn">
                     appendOplogNote
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-applicationMessage">
                    <code class="leafygreen-ui-1l06pbn">
                     applicationMessage
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-checkMetadataConsistency">
                    <code class="leafygreen-ui-1l06pbn">
                     checkMetadataConsistency
                    </code>
                   </a>
                   (New in version 7.0)
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-cleanupOrphaned">
                    <code class="leafygreen-ui-1l06pbn">
                     cleanupOrphaned
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-flushRouterConfig">
                    <code class="leafygreen-ui-1l06pbn">
                     flushRouterConfig
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/getClusterParameter/#mongodb-dbcommand-dbcmd.getClusterParameter">
                    <code class="leafygreen-ui-1l06pbn">
                     getClusterParameter
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-getDefaultRWConcern">
                    <code class="leafygreen-ui-1l06pbn">
                     getDefaultRWConcern
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSessions">
                    <code class="leafygreen-ui-1l06pbn">
                     listSessions
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listShards">
                    <code class="leafygreen-ui-1l06pbn">
                     listShards
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-removeShard">
                    <code class="leafygreen-ui-1l06pbn">
                     removeShard
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-replSetConfigure">
                    <code class="leafygreen-ui-1l06pbn">
                     replSetConfigure
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-replSetGetConfig">
                    <code class="leafygreen-ui-1l06pbn">
                     replSetGetConfig
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-replSetGetStatus">
                    <code class="leafygreen-ui-1l06pbn">
                     replSetGetStatus
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-replSetStateChange">
                    <code class="leafygreen-ui-1l06pbn">
                     replSetStateChange
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-resync">
                    <code class="leafygreen-ui-1l06pbn">
                     resync
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setClusterParameter/#mongodb-dbcommand-dbcmd.setClusterParameter">
                    <code class="leafygreen-ui-1l06pbn">
                     setClusterParameter
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-setDefaultRWConcern">
                    <code class="leafygreen-ui-1l06pbn">
                     setDefaultRWConcern
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-setFeatureCompatibilityVersion">
                    <code class="leafygreen-ui-1l06pbn">
                     setFeatureCompatibilityVersion
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-transitionFromDedicatedConfigServer">
                    <code class="leafygreen-ui-1l06pbn">
                     transitionFromDedicatedConfigServer
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-transitionToDedicatedConfigServer">
                    <code class="leafygreen-ui-1l06pbn">
                     transitionToDedicatedConfigServer
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
              </tr>
             </tbody>
            </table>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <em>
             All
            </em>
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-resource-specific-db">
             databases
            </a>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <table class="hlist">
             <tbody>
              <tr>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/analyzeShardKey/#mongodb-dbcommand-dbcmd.analyzeShardKey">
                    <code class="leafygreen-ui-1l06pbn">
                     analyzeShardKey
                    </code>
                   </a>
                   (New in version 7.0)
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-clearJumboFlag">
                    <code class="leafygreen-ui-1l06pbn">
                     clearJumboFlag
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/configureQueryAnalyzer/#mongodb-dbcommand-dbcmd.configureQueryAnalyzer">
                    <code class="leafygreen-ui-1l06pbn">
                     configureQueryAnalyzer
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-enableSharding">
                    <code class="leafygreen-ui-1l06pbn">
                     enableSharding
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-moveChunk">
                    <code class="leafygreen-ui-1l06pbn">
                     moveChunk
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-refineCollectionShardKey">
                    <code class="leafygreen-ui-1l06pbn">
                     refineCollectionShardKey
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-reshardCollection">
                    <code class="leafygreen-ui-1l06pbn">
                     reshardCollection
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
              </tr>
             </tbody>
            </table>
            <p class="leafygreen-ui-1kp3ins">
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterManager" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                clusterManager
               </code>
              </span>
             </a>
             provides additional privileges for the
             <code class="leafygreen-ui-1l06pbn">
              config
             </code>
             and
             <code class="leafygreen-ui-1l06pbn">
              local
             </code>
             databases.
            </p>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      On the
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      database, permits the following actions:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width:40%"/>
        <col style="width:60%"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Resource
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Actions
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            All non-system collections in the
            <code class="leafygreen-ui-1l06pbn">
             config
            </code>
            database
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <table class="hlist">
             <tbody>
              <tr>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
                    <code class="leafygreen-ui-1l06pbn">
                     collStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
                    <code class="leafygreen-ui-1l06pbn">
                     dbHash
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
                    <code class="leafygreen-ui-1l06pbn">
                     dbStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-enableSharding">
                    <code class="leafygreen-ui-1l06pbn">
                     enableSharding
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
                    <code class="leafygreen-ui-1l06pbn">
                     find
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
                    <code class="leafygreen-ui-1l06pbn">
                     insert
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
                    <code class="leafygreen-ui-1l06pbn">
                     killCursors
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
                    <code class="leafygreen-ui-1l06pbn">
                     listCollections
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listSearchIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-moveChunk">
                    <code class="leafygreen-ui-1l06pbn">
                     moveChunk
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
                    <code class="leafygreen-ui-1l06pbn">
                     planCacheRead
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-remove">
                    <code class="leafygreen-ui-1l06pbn">
                     remove
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-update">
                    <code class="leafygreen-ui-1l06pbn">
                     update
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
              </tr>
             </tbody>
            </table>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.js">
             <code class="leafygreen-ui-1l06pbn">
              system.js
             </code>
            </a>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <table class="hlist">
             <tbody>
              <tr>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
                    <code class="leafygreen-ui-1l06pbn">
                     collStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
                    <code class="leafygreen-ui-1l06pbn">
                     dbHash
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
                    <code class="leafygreen-ui-1l06pbn">
                     dbStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
                    <code class="leafygreen-ui-1l06pbn">
                     find
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
                    <code class="leafygreen-ui-1l06pbn">
                     killCursors
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
                    <code class="leafygreen-ui-1l06pbn">
                     listCollections
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listSearchIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
                    <code class="leafygreen-ui-1l06pbn">
                     planCacheRead
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
              </tr>
             </tbody>
            </table>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      On the
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      database, permits the following actions:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width:40%"/>
        <col style="width:60%"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Resource
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Actions
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            All non-system collections in the
            <code class="leafygreen-ui-1l06pbn">
             local
            </code>
            database
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <table class="hlist">
             <tbody>
              <tr>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-enableSharding">
                    <code class="leafygreen-ui-1l06pbn">
                     enableSharding
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
                    <code class="leafygreen-ui-1l06pbn">
                     insert
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-moveChunk">
                    <code class="leafygreen-ui-1l06pbn">
                     moveChunk
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-remove">
                    <code class="leafygreen-ui-1l06pbn">
                     remove
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-update">
                    <code class="leafygreen-ui-1l06pbn">
                     update
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
              </tr>
             </tbody>
            </table>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/local-database/#mongodb-data-local.system.replset">
             <code class="leafygreen-ui-1l06pbn">
              system.replset
             </code>
            </a>
            collection
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <table class="hlist">
             <tbody>
              <tr>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
                    <code class="leafygreen-ui-1l06pbn">
                     collStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
                    <code class="leafygreen-ui-1l06pbn">
                     dbHash
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
                    <code class="leafygreen-ui-1l06pbn">
                     dbStats
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
                    <code class="leafygreen-ui-1l06pbn">
                     find
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
                    <code class="leafygreen-ui-1l06pbn">
                     killCursors
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
               <td>
                <ul class="simple">
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
                    <code class="leafygreen-ui-1l06pbn">
                     listCollections
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
                    <code class="leafygreen-ui-1l06pbn">
                     listSearchIndexes
                    </code>
                   </a>
                  </p>
                 </li>
                 <li class="leafygreen-ui-d7p7b6">
                  <p class="leafygreen-ui-1kp3ins">
                   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
                    <code class="leafygreen-ui-1l06pbn">
                     planCacheRead
                    </code>
                   </a>
                  </p>
                 </li>
                </ul>
               </td>
              </tr>
             </tbody>
            </table>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      clusterMonitor
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-clusterMonitor" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-clusterMonitor">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides read-only access to monitoring tools, such as the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://cloud.mongodb.com/?tck=docs_server" target="_self">
       <span>
        MongoDB Cloud Manager
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/ops-manager/current/" target="_self">
       <span>
        Ops Manager
       </span>
      </a>
      monitoring agent.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Permits the following actions on the cluster as a whole:
     </p>
     <table class="hlist">
      <tbody>
       <tr>
        <td>
         <ul class="simple">
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-connPoolStats">
             <code class="leafygreen-ui-1l06pbn">
              connPoolStats
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-getCmdLineOpts">
             <code class="leafygreen-ui-1l06pbn">
              getCmdLineOpts
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-getDefaultRWConcern">
             <code class="leafygreen-ui-1l06pbn">
              getDefaultRWConcern
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-getLog">
             <code class="leafygreen-ui-1l06pbn">
              getLog
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-getParameter">
             <code class="leafygreen-ui-1l06pbn">
              getParameter
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-getShardMap">
             <code class="leafygreen-ui-1l06pbn">
              getShardMap
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-hostInfo">
             <code class="leafygreen-ui-1l06pbn">
              hostInfo
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-inprog">
             <code class="leafygreen-ui-1l06pbn">
              inprog
             </code>
            </a>
           </p>
          </li>
         </ul>
        </td>
        <td>
         <ul class="simple">
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listDatabases">
             <code class="leafygreen-ui-1l06pbn">
              listDatabases
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSessions">
             <code class="leafygreen-ui-1l06pbn">
              listSessions
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listShards">
             <code class="leafygreen-ui-1l06pbn">
              listShards
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-replSetGetConfig">
             <code class="leafygreen-ui-1l06pbn">
              replSetGetConfig
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-replSetGetStatus">
             <code class="leafygreen-ui-1l06pbn">
              replSetGetStatus
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-serverStatus">
             <code class="leafygreen-ui-1l06pbn">
              serverStatus
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-shardingState">
             <code class="leafygreen-ui-1l06pbn">
              shardingState
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-top">
             <code class="leafygreen-ui-1l06pbn">
              top
             </code>
            </a>
           </p>
          </li>
         </ul>
        </td>
       </tr>
      </tbody>
     </table>
     <p class="leafygreen-ui-1kp3ins">
      Permits the following actions on
      <em>
       all
      </em>
      databases in the cluster:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
         <code class="leafygreen-ui-1l06pbn">
          collStats
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
         <code class="leafygreen-ui-1l06pbn">
          dbStats
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-indexStats">
         <code class="leafygreen-ui-1l06pbn">
          indexStats
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-useUUID">
         <code class="leafygreen-ui-1l06pbn">
          useUUID
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Permits the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
       <code class="leafygreen-ui-1l06pbn">
        find
       </code>
      </a>
      action on all
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
       <code class="leafygreen-ui-1l06pbn">
        system.profile
       </code>
      </a>
      collections in the cluster.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      On the
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      database, permits the following actions:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width:40%"/>
        <col style="width:60%"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Resource
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Actions
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            All non-system collections in the
            <code class="leafygreen-ui-1l06pbn">
             config
            </code>
            database
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <div class="line-block">
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
               <code class="leafygreen-ui-1l06pbn">
                collStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
               <code class="leafygreen-ui-1l06pbn">
                dbHash
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
               <code class="leafygreen-ui-1l06pbn">
                dbStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
               <code class="leafygreen-ui-1l06pbn">
                find
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-indexStats">
               <code class="leafygreen-ui-1l06pbn">
                indexStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
               <code class="leafygreen-ui-1l06pbn">
                killCursors
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
               <code class="leafygreen-ui-1l06pbn">
                listCollections
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
               <code class="leafygreen-ui-1l06pbn">
                listIndexes
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
               <code class="leafygreen-ui-1l06pbn">
                listSearchIndexes
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
               <code class="leafygreen-ui-1l06pbn">
                planCacheRead
               </code>
              </a>
             </div>
            </div>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.js">
             <code class="leafygreen-ui-1l06pbn">
              system.js
             </code>
            </a>
            collection
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <div class="line-block">
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
               <code class="leafygreen-ui-1l06pbn">
                collStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
               <code class="leafygreen-ui-1l06pbn">
                dbHash
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
               <code class="leafygreen-ui-1l06pbn">
                dbStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
               <code class="leafygreen-ui-1l06pbn">
                find
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
               <code class="leafygreen-ui-1l06pbn">
                killCursors
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
               <code class="leafygreen-ui-1l06pbn">
                listCollections
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
               <code class="leafygreen-ui-1l06pbn">
                listIndexes
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
               <code class="leafygreen-ui-1l06pbn">
                planCacheRead
               </code>
              </a>
             </div>
            </div>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      On the
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      database, permits the following actions:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Resource
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Actions
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            All non-system collections in the
            <code class="leafygreen-ui-1l06pbn">
             local
            </code>
            database
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <div class="line-block">
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
               <code class="leafygreen-ui-1l06pbn">
                collStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
               <code class="leafygreen-ui-1l06pbn">
                dbHash
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
               <code class="leafygreen-ui-1l06pbn">
                dbStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
               <code class="leafygreen-ui-1l06pbn">
                find
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-indexStats">
               <code class="leafygreen-ui-1l06pbn">
                indexStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
               <code class="leafygreen-ui-1l06pbn">
                killCursors
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
               <code class="leafygreen-ui-1l06pbn">
                listCollections
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
               <code class="leafygreen-ui-1l06pbn">
                listIndexes
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
               <code class="leafygreen-ui-1l06pbn">
                listSearchIndexes
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
               <code class="leafygreen-ui-1l06pbn">
                planCacheRead
               </code>
              </a>
             </div>
            </div>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <div class="line-block">
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.js">
               <code class="leafygreen-ui-1l06pbn">
                system.js
               </code>
              </a>
              collection
             </div>
            </div>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <div class="line-block">
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
               <code class="leafygreen-ui-1l06pbn">
                collStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
               <code class="leafygreen-ui-1l06pbn">
                dbHash
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
               <code class="leafygreen-ui-1l06pbn">
                dbStats
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
               <code class="leafygreen-ui-1l06pbn">
                find
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
               <code class="leafygreen-ui-1l06pbn">
                killCursors
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
               <code class="leafygreen-ui-1l06pbn">
                listCollections
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
               <code class="leafygreen-ui-1l06pbn">
                listIndexes
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
               <code class="leafygreen-ui-1l06pbn">
                listSearchIndexes
               </code>
              </a>
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
               <code class="leafygreen-ui-1l06pbn">
                planCacheRead
               </code>
              </a>
             </div>
            </div>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <div class="line-block">
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/local-database/#mongodb-data-local.system.replset">
               <code class="leafygreen-ui-1l06pbn">
                system.replset
               </code>
              </a>
              ,
             </div>
             <div class="line">
              <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
               <code class="leafygreen-ui-1l06pbn">
                system.profile
               </code>
              </a>
              ,
             </div>
            </div>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
             <code class="leafygreen-ui-1l06pbn">
              find
             </code>
            </a>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      directShardOperations
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-directShardOperations" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-directShardOperations">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Starting in MongoDB 8.0, you can use the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-directShardOperations" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         directShardOperations
        </code>
       </span>
      </a>
      role to perform maintenance operations
that require you to execute commands directly against a shard.
     </p>
     <div class="leafygreen-ui-1sjx7ru" role="note">
      <h2 class="leafygreen-ui-29m78u">
       Warning
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Running commands using the
        <code class="leafygreen-ui-1l06pbn">
         directShardOperations
        </code>
        role can cause
your cluster to stop working correctly and may cause data corruption.
Only use the
        <code class="leafygreen-ui-1l06pbn">
         directShardOperations
        </code>
        role for maintenance purposes
or under the guidance of MongoDB support. Once you are done
performing maintenance operations, stop using the
        <code class="leafygreen-ui-1l06pbn">
         directShardOperations
        </code>
        role.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      enableSharding
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-enableSharding" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-enableSharding">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the ability to enable sharding for a collection and modify
existing shard keys.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following actions on all non-system collections:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-enableSharding">
         <code class="leafygreen-ui-1l06pbn">
          enableSharding
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-refineCollectionShardKey">
         <code class="leafygreen-ui-1l06pbn">
          refineCollectionShardKey
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-reshardCollection">
         <code class="leafygreen-ui-1l06pbn">
          reshardCollection
         </code>
        </a>
       </p>
      </li>
     </ul>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      hostManager
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-hostManager" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-hostManager">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the ability to monitor and manage servers.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      On the cluster as a whole, provides the following actions:
     </p>
     <table class="hlist">
      <tbody>
       <tr>
        <td>
         <ul class="simple">
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-applicationMessage">
             <code class="leafygreen-ui-1l06pbn">
              applicationMessage
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-closeAllDatabases">
             <code class="leafygreen-ui-1l06pbn">
              closeAllDatabases
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-compact">
             <code class="leafygreen-ui-1l06pbn">
              compact
             </code>
            </a>
            (New in version 7.3)
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-connPoolSync">
             <code class="leafygreen-ui-1l06pbn">
              connPoolSync
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-flushRouterConfig">
             <code class="leafygreen-ui-1l06pbn">
              flushRouterConfig
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-fsync">
             <code class="leafygreen-ui-1l06pbn">
              fsync
             </code>
            </a>
           </p>
          </li>
         </ul>
        </td>
        <td>
         <ul class="simple">
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-invalidateUserCache">
             <code class="leafygreen-ui-1l06pbn">
              invalidateUserCache
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killAnyCursor">
             <code class="leafygreen-ui-1l06pbn">
              killAnyCursor
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killAnySession">
             <code class="leafygreen-ui-1l06pbn">
              killAnySession
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killop">
             <code class="leafygreen-ui-1l06pbn">
              killop
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-logRotate">
             <code class="leafygreen-ui-1l06pbn">
              logRotate
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-oidReset">
             <code class="leafygreen-ui-1l06pbn">
              oidReset
             </code>
            </a>
           </p>
          </li>
         </ul>
        </td>
        <td>
         <ul class="simple">
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-resync">
             <code class="leafygreen-ui-1l06pbn">
              resync
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-rotateCertificates">
             <code class="leafygreen-ui-1l06pbn">
              rotateCertificates
             </code>
            </a>
            (New in version 5.0)
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-setParameter">
             <code class="leafygreen-ui-1l06pbn">
              setParameter
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-shutdown">
             <code class="leafygreen-ui-1l06pbn">
              shutdown
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-touch">
             <code class="leafygreen-ui-1l06pbn">
              touch
             </code>
            </a>
           </p>
          </li>
          <li class="leafygreen-ui-d7p7b6">
           <p class="leafygreen-ui-1kp3ins">
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-unlock">
             <code class="leafygreen-ui-1l06pbn">
              unlock
             </code>
            </a>
           </p>
          </li>
         </ul>
        </td>
       </tr>
      </tbody>
     </table>
     <p class="leafygreen-ui-1kp3ins">
      On
      <em>
       all
      </em>
      databases in the cluster, provides the following actions:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
         <code class="leafygreen-ui-1l06pbn">
          killCursors
         </code>
        </a>
       </p>
      </li>
     </ul>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-backup-and-restore-roles">
   </span>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Backup and Restoration Roles
    <a class="headerlink leafygreen-ui-1kepx47" href="#backup-and-restoration-roles" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="backup-and-restoration-roles">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    The
    <code class="leafygreen-ui-1l06pbn">
     admin
    </code>
    database includes the following roles for backing up and
restoring data:
   </p>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      backup
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-backup" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-backup">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides minimal privileges needed for backing up data. This role
provides sufficient privileges to use the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://cloud.mongodb.com/?tck=docs_server" target="_self">
       <span>
        MongoDB Cloud Manager
       </span>
      </a>
      backup agent,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/ops-manager/current/" target="_self">
       <span>
        Ops Manager
       </span>
      </a>
      backup agent, or to use
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongodump/#mongodb-binary-bin.mongodump" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         mongodump
        </code>
       </span>
      </a>
      to back up an entire
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      instance.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Provides the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
       <code class="leafygreen-ui-1l06pbn">
        insert
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-update">
       <code class="leafygreen-ui-1l06pbn">
        update
       </code>
      </a>
      actions
on the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/config-database/#mongodb-data-config.settings">
       <code class="leafygreen-ui-1l06pbn">
        settings
       </code>
      </a>
      collection in the
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      database.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      On
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-anyResource">
       <code class="leafygreen-ui-1l06pbn">
        anyResource
       </code>
      </a>
      , provides the
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listDatabases">
         <code class="leafygreen-ui-1l06pbn">
          listDatabases
         </code>
        </a>
        action
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
         <code class="leafygreen-ui-1l06pbn">
          listCollections
         </code>
        </a>
        action
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listIndexes">
         <code class="leafygreen-ui-1l06pbn">
          listIndexes
         </code>
        </a>
        action
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listSearchIndexes">
         <code class="leafygreen-ui-1l06pbn">
          listSearchIndexes
         </code>
        </a>
        action
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      On the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-resource-cluster">
       cluster
      </a>
      as a whole, provides the
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-appendOplogNote">
         <code class="leafygreen-ui-1l06pbn">
          appendOplogNote
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-getParameter">
         <code class="leafygreen-ui-1l06pbn">
          getParameter
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listDatabases">
         <code class="leafygreen-ui-1l06pbn">
          listDatabases
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-serverStatus">
         <code class="leafygreen-ui-1l06pbn">
          serverStatus
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-setUserWriteBlockMode">
         <code class="leafygreen-ui-1l06pbn">
          setUserWriteBlockMode
         </code>
        </a>
        (Starting in MongoDB 6.0)
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Provides the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
       <code class="leafygreen-ui-1l06pbn">
        find
       </code>
      </a>
      action on the following:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        all
        <em>
         non
        </em>
        -system collections in the cluster, including those in
the
        <code class="leafygreen-ui-1l06pbn">
         config
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         local
        </code>
        databases
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        The following system collections in the cluster:
       </p>
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.js">
         <code class="leafygreen-ui-1l06pbn">
          system.js
         </code>
        </a>
        , and
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
         <code class="leafygreen-ui-1l06pbn">
          system.profile
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        The
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data-admin.system.users">
         <code class="leafygreen-ui-1l06pbn">
          admin.system.users
         </code>
        </a>
        and
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data-admin.system.roles">
         <code class="leafygreen-ui-1l06pbn">
          admin.system.roles
         </code>
        </a>
        collections
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        The
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/config-database/#mongodb-data-config.settings">
         <code class="leafygreen-ui-1l06pbn">
          config.settings
         </code>
        </a>
        collection
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        Legacy
        <code class="leafygreen-ui-1l06pbn">
         system.users
        </code>
        collections from versions of MongoDB prior to 2.6
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Provides the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
       <code class="leafygreen-ui-1l06pbn">
        insert
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-update">
       <code class="leafygreen-ui-1l06pbn">
        update
       </code>
      </a>
      actions
on the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/config-database/#mongodb-data-config.settings">
       <code class="leafygreen-ui-1l06pbn">
        config.settings
       </code>
      </a>
      collection.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-backup" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         backup
        </code>
       </span>
      </a>
      role provides additional privileges to back
up the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
       <code class="leafygreen-ui-1l06pbn">
        system.profile
       </code>
      </a>
      collection that exists when running with
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/manage-the-database-profiler/#std-label-database-profiling">
       database profiling
       <!-- -->
       .
      </a>
     </p>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      restore
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-restore" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-restore">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-convertToCapped">
       <code class="leafygreen-ui-1l06pbn">
        convertToCapped
       </code>
      </a>
      on non-system collections.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Provides the necessary privileges to restore data from backups
      <em>
       if
      </em>
      the data
does not include
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
       <code class="leafygreen-ui-1l06pbn">
        system.profile
       </code>
      </a>
      collection
data and you run
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongorestore/#mongodb-binary-bin.mongorestore" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         mongorestore
        </code>
       </span>
      </a>
      without the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongorestore/#std-option-mongorestore.--oplogReplay" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         --oplogReplay
        </code>
       </span>
      </a>
      option.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      If the backup data includes
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
       <code class="leafygreen-ui-1l06pbn">
        system.profile
       </code>
      </a>
      collection data or you run with
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongorestore/#std-option-mongorestore.--oplogReplay" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         --oplogReplay
        </code>
       </span>
      </a>
      , you need
additional privileges:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width:20%"/>
        <col style="width:80%"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             system.profile
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <p class="leafygreen-ui-1kp3ins">
             If the backup data includes
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
              <code class="leafygreen-ui-1l06pbn">
               system.profile
              </code>
             </a>
             collection data and the target database
does not contain the
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
              <code class="leafygreen-ui-1l06pbn">
               system.profile
              </code>
             </a>
             collection,
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongorestore/#mongodb-binary-bin.mongorestore" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                mongorestore
               </code>
              </span>
             </a>
             attempts to create the collection
even though the program does not actually restore
             <code class="leafygreen-ui-1l06pbn">
              system.profile
             </code>
             documents. As such, the user requires additional privileges to perform
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createCollection">
              <code class="leafygreen-ui-1l06pbn">
               createCollection
              </code>
             </a>
             and
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-convertToCapped">
              <code class="leafygreen-ui-1l06pbn">
               convertToCapped
              </code>
             </a>
             actions on the
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.profile">
              <code class="leafygreen-ui-1l06pbn">
               system.profile
              </code>
             </a>
             collection for a database.
            </p>
            <p class="leafygreen-ui-1kp3ins">
             Both the built-in roles
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-dbAdmin" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                dbAdmin
               </code>
              </span>
             </a>
             and
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-dbAdminAnyDatabase" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                dbAdminAnyDatabase
               </code>
              </span>
             </a>
             provide the additional privileges.
            </p>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             --oplogReplay
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <p class="leafygreen-ui-1kp3ins">
             To run with
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongorestore/#std-option-mongorestore.--oplogReplay" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                --oplogReplay
               </code>
              </span>
             </a>
             , create a
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/manage-users-and-roles/#std-label-create-user-defined-role">
              user-defined role
             </a>
             that has
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-anyAction">
              <code class="leafygreen-ui-1l06pbn">
               anyAction
              </code>
             </a>
             on
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-resource-anyresource">
              <code class="leafygreen-ui-1l06pbn">
               anyResource
              </code>
              .
             </a>
            </p>
            <p class="leafygreen-ui-1kp3ins">
             Grant only to users who must run
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongorestore/#mongodb-binary-bin.mongorestore" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                mongorestore
               </code>
              </span>
             </a>
             with
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongorestore/#std-option-mongorestore.--oplogReplay" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                --oplogReplay
               </code>
               .
              </span>
             </a>
            </p>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following action on the cluster as a whole:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-getParameter">
         <code class="leafygreen-ui-1l06pbn">
          getParameter
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following actions on all
      <em>
       non
      </em>
      -system collections:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-bypassDocumentValidation">
         <code class="leafygreen-ui-1l06pbn">
          bypassDocumentValidation
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-changeCustomData">
         <code class="leafygreen-ui-1l06pbn">
          changeCustomData
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-changePassword">
         <code class="leafygreen-ui-1l06pbn">
          changePassword
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collMod">
         <code class="leafygreen-ui-1l06pbn">
          collMod
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-convertToCapped">
         <code class="leafygreen-ui-1l06pbn">
          convertToCapped
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createCollection">
         <code class="leafygreen-ui-1l06pbn">
          createCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createIndex">
         <code class="leafygreen-ui-1l06pbn">
          createIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createRole">
         <code class="leafygreen-ui-1l06pbn">
          createRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createSearchIndexes">
         <code class="leafygreen-ui-1l06pbn">
          createSearchIndexes
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createUser">
         <code class="leafygreen-ui-1l06pbn">
          createUser
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropCollection">
         <code class="leafygreen-ui-1l06pbn">
          dropCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropRole">
         <code class="leafygreen-ui-1l06pbn">
          dropRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropUser">
         <code class="leafygreen-ui-1l06pbn">
          dropUser
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-grantRole">
         <code class="leafygreen-ui-1l06pbn">
          grantRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
         <code class="leafygreen-ui-1l06pbn">
          insert
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-revokeRole">
         <code class="leafygreen-ui-1l06pbn">
          revokeRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-updateSearchIndex">
         <code class="leafygreen-ui-1l06pbn">
          updateSearchIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-viewRole">
         <code class="leafygreen-ui-1l06pbn">
          viewRole
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-viewUser">
         <code class="leafygreen-ui-1l06pbn">
          viewUser
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following actions on
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.js">
       <code class="leafygreen-ui-1l06pbn">
        system.js
       </code>
      </a>
      collection:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-bypassDocumentValidation">
         <code class="leafygreen-ui-1l06pbn">
          bypassDocumentValidation
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collMod">
         <code class="leafygreen-ui-1l06pbn">
          collMod
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createCollection">
         <code class="leafygreen-ui-1l06pbn">
          createCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createIndex">
         <code class="leafygreen-ui-1l06pbn">
          createIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropCollection">
         <code class="leafygreen-ui-1l06pbn">
          dropCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
         <code class="leafygreen-ui-1l06pbn">
          insert
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-updateSearchIndex">
         <code class="leafygreen-ui-1l06pbn">
          updateSearchIndex
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following action on
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-anyResource">
       <code class="leafygreen-ui-1l06pbn">
        anyResource
       </code>
       :
      </a>
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listCollections">
         <code class="leafygreen-ui-1l06pbn">
          listCollections
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following actions on all non-system collections on the
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      and the
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      databases:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-bypassDocumentValidation">
         <code class="leafygreen-ui-1l06pbn">
          bypassDocumentValidation
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collMod">
         <code class="leafygreen-ui-1l06pbn">
          collMod
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createCollection">
         <code class="leafygreen-ui-1l06pbn">
          createCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createIndex">
         <code class="leafygreen-ui-1l06pbn">
          createIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropCollection">
         <code class="leafygreen-ui-1l06pbn">
          dropCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
         <code class="leafygreen-ui-1l06pbn">
          insert
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-updateSearchIndex">
         <code class="leafygreen-ui-1l06pbn">
          updateSearchIndex
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following actions on
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data-admin.system.version">
       <code class="leafygreen-ui-1l06pbn">
        admin.system.version
       </code>
      </a>
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-bypassDocumentValidation">
         <code class="leafygreen-ui-1l06pbn">
          bypassDocumentValidation
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collMod">
         <code class="leafygreen-ui-1l06pbn">
          collMod
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createCollection">
         <code class="leafygreen-ui-1l06pbn">
          createCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createIndex">
         <code class="leafygreen-ui-1l06pbn">
          createIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropCollection">
         <code class="leafygreen-ui-1l06pbn">
          dropCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
         <code class="leafygreen-ui-1l06pbn">
          find
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
         <code class="leafygreen-ui-1l06pbn">
          insert
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-updateSearchIndex">
         <code class="leafygreen-ui-1l06pbn">
          updateSearchIndex
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following action on
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data-admin.system.roles">
       <code class="leafygreen-ui-1l06pbn">
        admin.system.roles
       </code>
      </a>
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createIndex">
         <code class="leafygreen-ui-1l06pbn">
          createIndex
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following actions on
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data-admin.system.users">
       <code class="leafygreen-ui-1l06pbn">
        admin.system.users
       </code>
      </a>
      and legacy
      <code class="leafygreen-ui-1l06pbn">
       system.users
      </code>
      collections:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-bypassDocumentValidation">
         <code class="leafygreen-ui-1l06pbn">
          bypassDocumentValidation
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collMod">
         <code class="leafygreen-ui-1l06pbn">
          collMod
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createCollection">
         <code class="leafygreen-ui-1l06pbn">
          createCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createIndex">
         <code class="leafygreen-ui-1l06pbn">
          createIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropCollection">
         <code class="leafygreen-ui-1l06pbn">
          dropCollection
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
         <code class="leafygreen-ui-1l06pbn">
          find
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-insert">
         <code class="leafygreen-ui-1l06pbn">
          insert
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-remove">
         <code class="leafygreen-ui-1l06pbn">
          remove
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-update">
         <code class="leafygreen-ui-1l06pbn">
          update
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-updateSearchIndex">
         <code class="leafygreen-ui-1l06pbn">
          updateSearchIndex
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Although,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-restore" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         restore
        </code>
       </span>
      </a>
      includes the ability to modify the
documents in the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data-admin.system.users">
       <code class="leafygreen-ui-1l06pbn">
        admin.system.users
       </code>
      </a>
      collection using normal
modification operations,
      <em>
       only
      </em>
      modify these data using the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/#std-label-user-management-methods">
       user management methods
       <!-- -->
       .
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Provides the following action on the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data--database-.system.views">
       <code class="leafygreen-ui-1l06pbn">
        &lt;database&gt;.system.views
       </code>
      </a>
      collection:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropCollection">
         <code class="leafygreen-ui-1l06pbn">
          dropCollection
         </code>
        </a>
        (Starting in MongoDB 7.2)
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      On the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-resource-cluster">
       cluster
      </a>
      as a whole, provides the
following actions:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-bypassWriteBlockingMode">
         <code class="leafygreen-ui-1l06pbn">
          bypassWriteBlockingMode
         </code>
        </a>
        (Staring in MongoDB 6.0)
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-setUserWriteBlockMode">
         <code class="leafygreen-ui-1l06pbn">
          setUserWriteBlockMode
         </code>
        </a>
        (Starting in MongoDB 6.0)
       </p>
      </li>
     </ul>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-auth-any-database-roles">
   </span>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    All-Database Roles
    <a class="headerlink leafygreen-ui-1kepx47" href="#all-database-roles" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="all-database-roles">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    The following roles are available on the
    <code class="leafygreen-ui-1l06pbn">
     admin
    </code>
    database and provide
privileges which apply to all databases except
    <code class="leafygreen-ui-1l06pbn">
     local
    </code>
    and
    <code class="leafygreen-ui-1l06pbn">
     config
    </code>
    :
   </p>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      readAnyDatabase
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-readAnyDatabase" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-readAnyDatabase">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the same read-only privileges as
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-read" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         read
        </code>
       </span>
      </a>
      on all databases
except
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      . The role also provides the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listDatabases">
       <code class="leafygreen-ui-1l06pbn">
        listDatabases
       </code>
      </a>
      action on the cluster as a whole.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      See also the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterManager" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterManager
        </code>
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterMonitor" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterMonitor
        </code>
       </span>
      </a>
      roles for access to the
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      databases.
     </p>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      readWriteAnyDatabase
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-readWriteAnyDatabase" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-readWriteAnyDatabase">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the same privileges as
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-readWrite" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         readWrite
        </code>
       </span>
      </a>
      on
all databases except
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      . The role also
provides:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        the
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listDatabases">
         <code class="leafygreen-ui-1l06pbn">
          listDatabases
         </code>
        </a>
        action on the cluster as a
whole
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        the
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-compactStructuredEncryptionData">
         <code class="leafygreen-ui-1l06pbn">
          compactStructuredEncryptionData
         </code>
        </a>
        action
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      See also the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterManager" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterManager
        </code>
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterMonitor" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterMonitor
        </code>
       </span>
      </a>
      roles for access to the
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      databases.
     </p>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      userAdminAnyDatabase
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-userAdminAnyDatabase" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-userAdminAnyDatabase">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the same access to user administration operations as
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdmin" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         userAdmin
        </code>
       </span>
      </a>
      on all databases except
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      .
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdminAnyDatabase" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         userAdminAnyDatabase
        </code>
       </span>
      </a>
      also provides the
following privilege actions on the cluster:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-authSchemaUpgrade">
         <code class="leafygreen-ui-1l06pbn">
          authSchemaUpgrade
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-invalidateUserCache">
         <code class="leafygreen-ui-1l06pbn">
          invalidateUserCache
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listDatabases">
         <code class="leafygreen-ui-1l06pbn">
          listDatabases
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      The role provides the following privilege actions on the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data-admin.system.users">
       <code class="leafygreen-ui-1l06pbn">
        system.users
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/system-collections/#mongodb-data-admin.system.roles">
       <code class="leafygreen-ui-1l06pbn">
        system.roles
       </code>
      </a>
      collections on the
      <code class="leafygreen-ui-1l06pbn">
       admin
      </code>
      database, and on legacy
      <code class="leafygreen-ui-1l06pbn">
       system.users
      </code>
      collections from
versions of MongoDB prior to 2.6:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-collStats">
         <code class="leafygreen-ui-1l06pbn">
          collStats
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createIndex">
         <code class="leafygreen-ui-1l06pbn">
          createIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-createSearchIndexes">
         <code class="leafygreen-ui-1l06pbn">
          createSearchIndexes
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbHash">
         <code class="leafygreen-ui-1l06pbn">
          dbHash
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dbStats">
         <code class="leafygreen-ui-1l06pbn">
          dbStats
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropIndex">
         <code class="leafygreen-ui-1l06pbn">
          dropIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-dropSearchIndex">
         <code class="leafygreen-ui-1l06pbn">
          dropSearchIndex
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
         <code class="leafygreen-ui-1l06pbn">
          find
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-killCursors">
         <code class="leafygreen-ui-1l06pbn">
          killCursors
         </code>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-planCacheRead">
         <code class="leafygreen-ui-1l06pbn">
          planCacheRead
         </code>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdminAnyDatabase" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         userAdminAnyDatabase
        </code>
       </span>
      </a>
      role does not restrict the privileges
that a user can grant. As a result,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdminAnyDatabase" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         userAdminAnyDatabase
        </code>
       </span>
      </a>
      users
can grant themselves privileges in excess of their current
privileges and even can grant themselves
      <em>
       all privileges
      </em>
      , even though the
role does not explicitly authorize privileges beyond user administration.
This role is effectively a MongoDB system
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-superuser" target="_self">
       <span>
        superuser
        <!-- -->
        .
       </span>
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      See also the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterManager" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterManager
        </code>
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterMonitor" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterMonitor
        </code>
       </span>
      </a>
      roles for access to the
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      databases.
     </p>
    </dd>
   </dl>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      dbAdminAnyDatabase
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-dbAdminAnyDatabase" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-dbAdminAnyDatabase">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides the same privileges as
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-dbAdmin" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         dbAdmin
        </code>
       </span>
      </a>
      on
all databases except
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      . The role also
provides the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-listDatabases">
       <code class="leafygreen-ui-1l06pbn">
        listDatabases
       </code>
      </a>
      action on the cluster as
a whole.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      See also the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterManager" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterManager
        </code>
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterMonitor" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         clusterMonitor
        </code>
       </span>
      </a>
      roles for access to the
      <code class="leafygreen-ui-1l06pbn">
       config
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       local
      </code>
      databases.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Starting in MongoDB 5.0,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-dbAdminAnyDatabase" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         dbAdminAnyDatabase
        </code>
       </span>
      </a>
      includes the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#std-label-internal-actions">
       applyOps
      </a>
      privilege action.
     </p>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-superuser">
   </span>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Superuser Roles
    <a class="headerlink leafygreen-ui-1kepx47" href="#superuser-roles" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="superuser-roles">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    Several roles provide either indirect or direct system-wide superuser access.
   </p>
   <p class="leafygreen-ui-1kp3ins">
    The following roles provide the ability to assign any user any privilege on
any database, which means that users with one of these roles can assign
    <em>
     themselves
    </em>
    any privilege on any database:
   </p>
   <ul class="leafygreen-ui-rioki0">
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-dbOwner" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         dbOwner
        </code>
       </span>
      </a>
      role, when scoped to the
      <code class="leafygreen-ui-1l06pbn">
       admin
      </code>
      database
     </p>
    </li>
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdmin" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         userAdmin
        </code>
       </span>
      </a>
      role, when scoped to the
      <code class="leafygreen-ui-1l06pbn">
       admin
      </code>
      database
     </p>
    </li>
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdminAnyDatabase" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         userAdminAnyDatabase
        </code>
       </span>
      </a>
      role
     </p>
    </li>
   </ul>
   <p class="leafygreen-ui-1kp3ins">
    The following role provides full privileges on all resources:
   </p>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      root
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-root" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-root">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Provides access to the operations and all the resources of the
following roles
      <em>
       combined
      </em>
      :
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-readWriteAnyDatabase" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           readWriteAnyDatabase
          </code>
         </span>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-dbAdminAnyDatabase" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           dbAdminAnyDatabase
          </code>
         </span>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-userAdminAnyDatabase" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           userAdminAnyDatabase
          </code>
         </span>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-clusterAdmin" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           clusterAdmin
          </code>
         </span>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-restore" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           restore
          </code>
         </span>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-authrole-backup" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           backup
          </code>
         </span>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      Also provides the following privilege actions:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-validate">
         <code class="leafygreen-ui-1l06pbn">
          validate
         </code>
        </a>
        on
        <code class="leafygreen-ui-1l06pbn">
         system.
        </code>
        collections.
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-bypassDefaultMaxTimeMS">
         <code class="leafygreen-ui-1l06pbn">
          bypassDefaultMaxTimeMS
         </code>
        </a>
        , which
causes all queries run by the user to ignore the value of
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/cluster-parameters/defaultMaxTimeMS/#mongodb-parameter-param.defaultMaxTimeMS">
         <code class="leafygreen-ui-1l06pbn">
          defaultMaxTimeMS
         </code>
         .
        </a>
       </p>
      </li>
     </ul>
     <div>
      <p>
       <em>
        Changed
        <!-- -->
        in version
        <!-- -->
        6.0
       </em>
       :
       <!-- -->
       The
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/built-in-roles/#mongodb-authrole-root">
        <code class="leafygreen-ui-1l06pbn">
         root
        </code>
       </a>
       role includes
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-find">
        <code class="leafygreen-ui-1l06pbn">
         find
        </code>
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-remove">
        <code class="leafygreen-ui-1l06pbn">
         remove
        </code>
       </a>
       privileges on the
       <code class="leafygreen-ui-1l06pbn">
        system.preimages
       </code>
       collection in the
       <code class="leafygreen-ui-1l06pbn">
        config
       </code>
       database.
      </p>
     </div>
    </dd>
   </dl>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Internal Role
    <a class="headerlink leafygreen-ui-1kepx47" href="#internal-role" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="internal-role">
     </div>
    </a>
   </h3>
   <dl class="authrole">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      __system
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-authrole-__system" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-authrole-__system">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      MongoDB assigns this role to user objects that represent cluster members,
such as replica set members and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      instances. The role
entitles its holder to take any action against any object in the database.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <strong>
       Do not
      </strong>
      assign this role to user objects representing applications or
human administrators, other than in exceptional circumstances.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      If you need access to all actions on all resources, for example to
run
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/applyOps/#mongodb-dbcommand-dbcmd.applyOps">
       <code class="leafygreen-ui-1l06pbn">
        applyOps
       </code>
      </a>
      commands, do not assign this role.
Instead,
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/manage-users-and-roles/#std-label-create-user-defined-role">
       create a user-defined role
      </a>
      that
grants
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-anyAction">
       <code class="leafygreen-ui-1l06pbn">
        anyAction
       </code>
      </a>
      on
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/resource-document/#std-label-resource-anyresource">
       <code class="leafygreen-ui-1l06pbn">
        anyResource
       </code>
      </a>
      and
ensure that only the users who need access to these operations have
this access.
     </p>
    </dd>
   </dl>
  </section>
 </section>
</section>
