Roles in Appsmith are collections of permissions that enable users or groups to access certain operations on resources. Rather than giving individual permissions to users or groups, roles allow users to manage multiple permissions.
In addition to the default roles for applications and workspace, Appmith provides two instance-level roles - Default Role for all Users and Instance Administrator.
Default Role For All Users: This role applies to all users and can be used to assign a default set of permissions in an instance. It is editable and does not come with any predefined permissions, and Instance Administrators can customize it and assign default permissions to new users joining the instance. By adjusting the permissions in this role, they can ensure that new users have an appropriate level of access.
Instance Administrator: This role provides a user with permission to modify settings at the instance level from the Admin settings. This includes changing the general settings of the instance, such as authentication, email, custom branding, access to view audit logs and granular access control actions. It's important to note that this role has significant control over the instance, so it should only be assigned to trusted users who need these capabilities.
With custom roles, you can provide fine-grained access control by configuring multiple permissions for the role you are creating. To create a custom role, go to Admin Settings > Access Control > Roles and click the Add Role button.
The permissions are grouped into four categories, which helps users manage and access the necessary permissions easily:
In this section, you'll find permissions related to the application and its resources such as pages, widgets, and queries. The table below illustrates the permissions that can be assigned to either a user or a group. Additionally, it explains how each permission behaves at various hierarchical levels.
|Create applications, pages and queries inside the workspace
|Edit any application, page and query inside the workspace.
|Delete any application, page and query inside the workspace
|View any application, page and query inside the workspace.
|Make any application inside the workspace public.
|Export any application in the workspace.
|Create pages and queries inside the app
|Edit pages and queries inside the app.
|Delete the app and its pages and queries.
|View the app and its pages and queries.
|Make the application public
|Export that particular application.
|Create queries on the page.
|Edit the page and its queries.
|Delete the page and its queries.
|View the page and its queries.
|Edit the query.
|Delete the query.
|View the query.
|Execute the query.
Datasource and environments
This section contains permissions related to the actions a user can perform on datasources and environments. The table below lists the different permissions available and outlines how each permission operates at varying hierarchical levels:
|Execute queries on any datasource in the workspace.
|Create queries on any datasource in the workspace.
|Edit any datasource in the workspace.
|Delete any datasource in the workspace.
|View any datasource in the workspace.
|Execute queries for different environments.
|Create custom environments.
|Edit and configure different environments.
|Delete different environments.
|View environments in the workspace.
|Execute queries on that datasource provided they have access to execute on at least one environment.
|Create queries on the datasource.
|Edit values of datasource configurations parameters in all environments.
|Add or remove datasource configuration parameters in all environments.
|View datasource configuration values in all environments.
Groups and roles
This section includes permissions for managing the groups and roles of an Appsmith instance. The table below presents the available permissions that can be assigned to either a user or a group:
|Create a User Group.
|Edit any User Group.
|Delete any User Group.
|View any User Group
|Invite an email to any User Group.
|Remove another user from any User Group.
|Edit the User Group.
|Delete the User Group.
|View the User Group.
|Invite an email to the User Group
|Remove another user from the User Group.
|Create a Role
|Edit any Role.
|Delete any Role.
|View any Role.
|Assign any role to any User or User Group.
|Edit the Role.
|Delete the Role.
|View the Role.
|Assign the role to any User or User Group.
In this section, users can assign permissions for workspaces and Audit logs.
|Create a workspace.
|Edit any workspace.
|Delete any workspace.
|View any workspace.
|Edit the workspace.
|Delete the workspace.
|View the workspace.
|View the audit logs.