Skip to content

Commit

Permalink
Merge pull request #339 from permitio/maya/per-9761-default-roles-and…
Browse files Browse the repository at this point in the history
…-advanced-policy-settings-ui

Default Roles and advanced policy settings UI
  • Loading branch information
maya-barak authored Jul 15, 2024
2 parents 1f79eb7 + aee549c commit fcec86c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/how-to/build-policies/policy-basics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,27 @@ resource.
_Above is a Policy Editor example with two roles - **Admin** & **Supervisor** - and three resources `Board`, `Task`, `Document`_.
_As an example, the Admin cannot sign a Document._

### Default Permissions

By default, every new resource will have default actions and roles assigned to it.
The actions will appear by default when you create a new resource in the environment.
Roles and permissions will automatically be added to the policy of every new resource in the environment (base on the resource action that you have defined).
You can edit the default roles and actions based on your needs.

To disable `Assign the Default Roles to every new resource` visit the settings button in the **[policy editor](https://app.permit.io/policy-editor)** section.

![Default Settings](/img/default-setting-form.png)

:::note
The default settings will only be applied to new resources created from the dashboard.

By default, the default permissions are:
- `Admin` role with actions `Read`, `Create`, `Update`, `Delete`
- `Editor` role with actions `Read`, `Create`, `Update`
- `Viewer` role with actions `Read`
:::


## Create Roles and Permissions

### Roles
Expand Down
Binary file added static/img/default-setting-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fcec86c

Please sign in to comment.