PRODCAST) to your users and update the role as required when you add new collections/databases with shared access. You could then grant the custom role (eg. If all of your users need a common set of access privileges you could create a user-defined (custom) role to make administration easier. create a separate database for collections needing more restrictive permissions. explicitly grant permission for each collection (instead of read/write access for the entire PRODCAST database), or.Suggested approaches to restrict access to collC would be to either: Assume that we have 10 users where they all can able to access the PRODCAST database and able to perform the read/write operations on all collections which are existed in the DB. Is there any way that we can restrict the read/write access for a specific collection in a DB even though users have the read/write access for the Database ?Īs at MongoDB 3.6, roles and privileges are additive: you can grant additional permissions to a user but cannot remove or restrict existing privileges that have been granted or inherited.įor example: I have a DB called : PRODCAST and it contains collA, collB, collC and collD.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |