# Howto limit access to user's own user-made content?

**URL:** <https://discourse.getcockpit.com/t/howto-limit-access-to-users-own-user-made-content/1622>\
**Category:** General\
**Created:** [September 9, 2020, 4:26pm UTC](https://discourse.getcockpit.com/t/howto-limit-access-to-users-own-user-made-content/1622 "2020-09-09T16:26:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rollo62](https://avatars.discourse-cdn.com/v4/letter/r/bbe5ce/32.png) [@Rollo62](https://discourse.getcockpit.com/u/Rollo62)\
**Post date:** [September 10, 2020, 5:42am UTC](https://discourse.getcockpit.com/t/howto-limit-access-to-users-own-user-made-content/1622/2 "2020-09-10T05:42:35Z")

</div>

I found this script from Raffaelj’s very useful site.  
[https://github.com/raffaelj/cockpit-scripts/blob/master/permissions/restrict-content-to-owner-and-disallow-editing-published-entries.php](https://github.com/raffaelj/cockpit-scripts/blob/master/permissions/restrict-content-to-owner-and-disallow-editing-published-entries.php)

It seems that this is the right way to isolate data.  
I also found something about separation of private assets  
[https://discourse.getcockpit.com/t/private-assets-per-user/1560/3](https://discourse.getcockpit.com/t/private-assets-per-user/1560/3)

This is basically what I’m looking for.

Are there maybe more complete scripts or addons that can solve this,  
or do I have to fix scripts in various places to achieve this.

Sorry for the stupid questions, but I’m trying to learn cockpit from scratch.

When I use the backend to store permissions for colletions, they all are red,  
and when I configure them to green, after saving they’re back to red again.  
So I’m very unsure how and if the permissions shall be handled correctly.  
Do I have to set all CRUD permissions in the group definiton file, I use YAML ?

Maybe someone could point me to the latest solution for such use case.  
Do I look into the right direction ?

---

_[View the full topic](https://discourse.getcockpit.com/t/howto-limit-access-to-users-own-user-made-content/1622)._
