# Prohibit user/role to access other people's records in a collection?

**URL:** <https://discourse.getcockpit.com/t/prohibit-user-role-to-access-other-peoples-records-in-a-collection/2533>\
**Category:** Support\
**Created:** [October 24, 2022, 3:59pm UTC](https://discourse.getcockpit.com/t/prohibit-user-role-to-access-other-peoples-records-in-a-collection/2533 "2022-10-24T15:59:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![witsec](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/witsec/32/818_2.png) [@witsec](https://discourse.getcockpit.com/u/witsec)\
**Post date:** [October 24, 2022, 3:59pm UTC](https://discourse.getcockpit.com/t/prohibit-user-role-to-access-other-peoples-records-in-a-collection/2533/1 "2022-10-24T15:59:37Z")

</div>

Let’s say you have multiple users and they all add records to a collection, but you don’t want them to see each other’s records (but an admin or specific role can).

Would that be possible in Cockpit?

Edit: I found code for v1, which is very similar to what I’m after, but I think it works different in v2: [cockpit-scripts/restrict-content-to-owner-and-disallow-editing-published-entries.php at master · raffaelj/cockpit-scripts · GitHub](https://github.com/raffaelj/cockpit-scripts/blob/master/permissions/restrict-content-to-owner-and-disallow-editing-published-entries.php)
