When discussing expanded rights, there are three aspects we must consider, expanding the rights to include the following:
- Any database
- Database and collection administration
- Database user administration
All of these involve MongoDB role-based access control. In all of these cases, the primary question you need to ask is what is the application expected to do? Let's first examine expanding the rights to incorporate multiple databases.