Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 687 Bytes

access-update-role.rst

File metadata and controls

18 lines (13 loc) · 687 Bytes

You must have the :authaction:`revokeRole` :ref:`action <security-user-actions>` on all databases in order to update a role.

You must have the :authaction:`grantRole` :ref:`action <security-user-actions>` on the database of each role in the roles array to update the array.

You must have the :authaction:`grantRole` action on the database of each privilege in the privileges array to update the array. If a privilege's resource spans databases, you must have :authaction:`grantRole` on the admin database. A privilege spans databases if the privilege is any of the following:

  • a collection in all databases
  • all collections and all database
  • the cluster resource