Can you have collection level permissions in MongoDB?

后端 未结 2 1337
醉酒成梦
醉酒成梦 2021-01-18 00:06

Can you have collection level permissions in MongoDB? Similar to table level permissions in a SQL database?

This is the only thing I could find on it. Looks like a

2条回答
  •  野的像风
    2021-01-18 00:57

    Nope, not yet, MongoDB access control is currently only available at the database level. Depending on your requirements, it might be an option to implement a security model in application code that controls access down to the collection level.

提交回复
热议问题