> For the complete documentation index, see [llms.txt](https://molgenis.gitbook.io/molgenis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://molgenis.gitbook.io/molgenis/9.1/access-control/guide-data-row-permissions.md).

# Set permissions on row level (RLS)

## Enabling Row Level security for your package

Assuming you have uploaded a new package, go to the permission manager plugin. Select from the left 'Row-Level Security'. Find your package and check Row-Level Security Enabled.

## Manage permissions

Go to the Data Row Permissions plugin

Open your selected EntityType (or use the filter option to easily find your entityType). Click on the EntityType.

> **Note:** if you don't see any entities in this screen, there are none with set permissions. Get the entity id from the data explorer, navigate back to this screen and add it to the end of the url e.g: <http://....#/entityTypeId/objectId>

If you have manually added the Id to the URL the screen will start in addmode.

### Add

You can now add a new user / role to have access on that particular row / object Start by selecting a type (role/user). Then on the left you have a dropdown with available options. Then you can set the correct permissions on the right dropdown. If you are all set save. The permission should be succesfully added.

### Edit

Press the edit button. The fields are now ready to be changed. Click either cancel (the edit button changed to cancel) or the save button to either cancel or complete the operation.

> **Note:** You can bulk edit

### Delete

When pressing the delete button, you enter deletemode. You can now delete them one at the time. This is immediate and **permanent**. Use with caution. Press cancel to stop delete mode.

### Change ownership

When you click on change ownership you get a modal with all possible owners. Select one from the dropdown to save the new owner.

> **Note:** This is a one-way action and can only be reversed by the new owner!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://molgenis.gitbook.io/molgenis/9.1/access-control/guide-data-row-permissions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
