Authorization and Roles

The Studio supports role-based authorization which allows you to define specific user roles and set access rights to its modules, views, and components.

Setting the User Roles

Getting Started

To implement a role-based authorization:

  1. Define a list of user roles that will be supported by the application.
  2. Get the user roles after user authentication by adding custom, specific to your backend code.
  3. Set the access rights for the different parts of the application—for example, modules, views, and so on.

Defining user roles and setting access rights hides parts of the user interface. Make sure that the data service does not send any data over the wire which the user is not authorized to see.

Defining User Roles

  1. On the App Design page, click the Settings icon.
  2. Select Roles to open the Authorization Roles dialog box.
  3. Define a user role.
  4. Click Add Role to add the user role to the list below.
  5. Click Save to save or Cancel to discard your changes.

Setting Access Rights

The Studio supports the following levels of access rights:

  • Module—At the module level, provide a subset of roles that are defined at the application level. The module is accessible only to users with the respective roles.
  • View—At the view level, provide a subset of roles that are defined at the module level. The view is accessible only to users with the respective roles.
  • (Applicable for Blank View rows and columns) Individual components—At the component level, provide a subset of roles that are defined for the Blank View. The row or column is accessible only to users with the respective roles.
In this article
Not finding the help you need?