|
1 | 1 | ---
|
2 | 2 | description: >-
|
3 |
| - Manage permissions for apps, modules, queries, data sources, and folders in |
4 |
| - your workspace. |
| 3 | + Manage permissions for apps, modules, navigations, folders, query library, and |
| 4 | + data sources in your workspace. |
5 | 5 | ---
|
6 | 6 |
|
7 | 7 | # Permissions for resources
|
8 | 8 |
|
9 |
| -Openblocks implements [Role-based Access Control](https://en.wikipedia.org/wiki/Role-based\_access\_control) (RBAC) by assigning a set of permissions to different roles. These permissions determine the actions users can take on resources, including apps, modules, queries, data sources, and folders.  |
| 9 | +Openblocks implements [Role-based Access Control](https://en.wikipedia.org/wiki/Role-based\_access\_control) (RBAC) by assigning a set of permissions to different roles. These permissions determine the actions users can take on resources, including apps, modules, navigations, folders, query library, and data sources.  |
10 | 10 |
|
11 |
| -Only workspace admins and members of Developers group are allowed to create resources. For workspace admins, they are in fact the owner of all resources. |
| 11 | +Only workspace admins and members of **Developers** group are allowed to create resources. For workspace admins, they are in fact the owner of all resources. |
12 | 12 |
|
13 |
| -## Apps and modules |
| 13 | +## Apps, modules, **navigations** |
| 14 | + |
| 15 | +The permissions for these three resources are the same. |
| 16 | + |
| 17 | +<figure><img src="../.gitbook/assets/permission-1.png" alt=""><figcaption></figcaption></figure> |
14 | 18 |
|
15 | 19 | ### Share and set roles
|
16 | 20 |
|
17 |
| -App owners can add members to app and assign different roles to them. In a web app or module editor, click **Share** at the top right, then click **Add members**. |
| 21 | +The owners of apps, modules and navigations can add members and assign different roles to them. When editing a web app, a module or a navigation, click **Share** at the top right, then click **Add members**. |
18 | 22 |
|
19 | 23 | <figure><img src="../.gitbook/assets/share-add-members.png" alt=""><figcaption></figcaption></figure>
|
20 | 24 |
|
21 |
| -Choose members and groups in the list and set roles for them. |
| 25 | +Choose members and groups from the list and set roles for them. |
22 | 26 |
|
23 | 27 | 
|
24 | 28 |
|
25 | 29 | The available roles and their corresponding permissions are listed in the table below.
|
26 | 30 |
|
27 |
| -| Role | Permissions | |
28 |
| -| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | |
29 |
| -| <ul><li>Viewer</li></ul> | <ul><li>View the app, or use the module</li></ul> | |
30 |
| -| <ul><li>Editor</li></ul> | <ul><li>View the app, or use the module</li><li>Rename</li><li>Edit</li><li>Release</li><li>Export</li></ul> | |
31 |
| -| <ul><li>Owner</li></ul> | <ul><li>All permissions of <strong></strong> Editor</li><li>Delete the app or module</li><li>Set roles for members</li></ul> | |
| 31 | +| Role | Permissions | |
| 32 | +| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | |
| 33 | +| <ul><li>Viewer</li></ul> | <ul><li>View and use the app, module and navigation</li></ul> | |
| 34 | +| <ul><li>Editor</li></ul> | <ul><li>View and use the app, module and navigation</li><li>Rename</li><li>Edit</li><li>Publish</li><li>Duplicate</li><li>Export</li></ul> | |
| 35 | +| <ul><li>Owner</li></ul> | <ul><li>All permissions of <strong></strong> Editor</li><li>Delete the app or module</li><li>Set roles for members</li></ul> | |
32 | 36 |
|
33 |
| -### Make app public |
| 37 | +### Make public |
34 | 38 |
|
35 |
| -If you want to make an app public and accessible to all users (including anonymous users), you can toggle the **Make the app public** switch in **Share** settings. |
| 39 | +If you want to make an app or a module or a navigation public to all users (including anonymous users), you can toggle on **Make the app public** in **Share** settings. |
36 | 40 |
|
37 | 41 | .png>)
|
38 | 42 |
|
| 43 | +## Folder |
| 44 | + |
| 45 | +Folders help you sort out the apps, modules, and navigations in the workspace. Only workspace **admins** and members of **Developers** group have the following permissions for folders: |
| 46 | + |
| 47 | +* Create |
| 48 | +* Rename |
| 49 | +* Delete |
| 50 | +* Move the apps, modules and navigations into or out of folders |
| 51 | + |
39 | 52 | ## Data sources
|
40 | 53 |
|
41 |
| -In Openblocks, members with permissions to use, edit and delete data sources **** are listed as follows: |
| 54 | +Only workspace admins and developers can view the **Data Sources** page and create new data sources. |
| 55 | + |
| 56 | +For each data source, workspace admins and the creator can change its **Access Control**. Go to Openblocks homepage > **Data Sources**, and click `···` > **Access Control**. |
| 57 | + |
| 58 | +<figure><img src="../.gitbook/assets/permission-date source-1.png" alt=""><figcaption></figcaption></figure> |
| 59 | + |
| 60 | +In **Access Control** settings, add members or groups from the workspace, and then choose their roles (**Can use** or **Can manage**). |
| 61 | + |
| 62 | +  |
| 63 | + |
| 64 | +The permissions of these two roles are listed in the following table: |
| 65 | + |
| 66 | +| Role | Permissions | |
| 67 | +| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 68 | +| <ul><li>Can use</li></ul> | <ul><li>Use data source when editing an app/module/navigation/library query</li></ul> | |
| 69 | +| <ul><li>Can manage</li></ul> | <ul><li>Use data source when editing an app/module/navigation/library query</li><li>Edit data source</li><li>Delete data source</li><li>Manage data source permission roles</li></ul> | |
| 70 | + |
| 71 | +## Query library |
42 | 72 |
|
43 |
| -* **Edit** or **Delete** |
44 |
| - * Data source creators and workspace admins. |
45 |
| -* **Use** |
46 |
| - * Workspace admins and developers. |
47 |
| - * Members with permissions to edit an app are automatically granted access to use data sources already used in the app. |
| 73 | +Workspace admins and members of developers group can create query library in Openblocks. And they have read, write, use and delete permissions for queries if they can use the query's corresponding data source. |
0 commit comments