# Permission Sharing

By default, permissions apply to all users.

You can restrict which roles a permission rule applies to, by switching from **Everyone** to **Some users**. If you're not using [User Roles](https://support.stackerhq.com/hc/en-us/articles/4409591860243-Set-up-User-Roles), then you will only be able to select the default **'User'**. This means that all users in your app will be given the same level of access. If you are using custom **User Roles**, you can choose to apply a permission rule to one or more of these Roles.

By creating [Multiple Permission Rules](https://support.stackerhq.com/hc/en-us/articles/4409598072979-Multiple-permission-rules), you can give different permissions to your users based on their Role - by applying different User Roles to different permission rules.

<figure><img src="/files/hMNLC7dMkZlTLW9l428z" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.stackerhq.com/stacker-astra/security/add-user-permissions/create-or-edit-a-permission-rule/permission-sharing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
