Skip to content
Home » Creating Custom Roles in Codeless ONE

Creating Custom Roles in Codeless ONE

Creating Custom Roles in Codeless ONE

Office roles

Every organization functions within its own unique hierarchical structure, designed to meet its specific goals and needs. This hierarchy is composed of various roles, each aligned with distinct responsibilities and tasks. These roles can vary widely, depending on the functions individuals or teams perform within the company. For example, there are roles in management, operations, marketing, human resources, and more, each addressing different aspects of the organization’s objectives. While there may occasionally be some overlap in responsibilities—where one role might assist or complement another—each position is typically tailored to meet a particular organizational requirement, ensuring efficiency and clarity in operations. The division of roles helps maintain order, accountability, and productivity, enabling the organization to function smoothly and meet its strategic goals.

In a Codeless ONE app, each user role comes with specific responsibilities, which determine the level of access, rights, and restrictions associated with that role. The range of roles is diverse, allowing for varying degrees of interaction with the application.

For instance, some roles are designed to have minimal access, functioning primarily as observers. These users can view information but cannot make any changes or interact with the system beyond a basic level. On the other hand, there are roles with more privileges, such as contributors. These users can interact with and modify certain aspects of the application, though their access may still be limited in scope. Finally, there are administrator roles, which are granted full control over the application. Administrators have complete access to all settings, parts, and functionalities, enabling them to manage and oversee the entire system.

Codeless ONE applications come with a set of pre-defined roles that cover common use cases. However, the platform also allows users to create custom roles, providing flexibility to tailor access levels and permissions based on the specific needs of the organization or project. This customization ensures that the application can adapt to a wide range of user responsibilities and organizational structures, making it highly adaptable for various business or operational requirements

Roles do not exist throughout a Workspace, instead they are confined to an application. Therefore, we need to open the desired application, in which we want to create a customized role.

Click on the desired application name to open it.

Open the desired App

Step 2: Access the Application Settings

Click on the App Settings icon Settings Icon and select the Application Settings option.

Access Application Settings

Step 3: Go to App Model

Click on the App Model option in the left-hand panel.

Go to App Model

Step 4: Open the Roles Tab

Click on the Roles tab to open the relevant options page.

Click the Roles Tab

Roles List

By default, an application comes with three roles: Admin, Contributor, and Guest. Each has varying levels of access and rights in the application. We are going to add a new role to the list with our customized rights/settings granted.

Roles list

Step 5: Create a new role

Click the + New Role button

Create a custom role

Step 6: Give a name to the role

Give a proper name to the role that we are going to customize.

Name the role

Role created!

We have successfully created our customized role, as displayed  in the list. The right-hand panel shows all the settings that we can customize.

Role's name and properties

Step 7: Customize general properties

Now that we have created our role, it’s time to do the customization. Enable/disable the options to grant/restrict the relevant rights.

Custmizing Role 1

Make sure to scroll down and set the relevant rights for the customized role.

Custmizing Role 2

Step 8: Click on Objects label

After the customization of general options, let’s delve deeper and customize objects/properties. Click the Objects label to start the process.

Set object-related properties

Step 9: Customize Objects

Customize the access rights to each object of the app. The options available are Full access (for unlimited access), Read only (for viewing only access) and No access (do we need to explain this? wink!)

Set objects' rights

Step 10: Customize Object Properties

Now select an object from the Objects list, and customize its properties from the Properties list.

Set properties' rights

Step 11: Update App

Once all the customization has been done, click on the Update App button, to apply the changes in our app.

Update the app

Step 12: Confirm updation

Click the Confirm button, to confirm updating the app and complete the customized role creation process.

Confirm app updation

In this article, we created a customized Sales Executive role, with read-only access to the Training Sessions object. We can see that our customized role can only view the data but can’t create a new training session. Other relevant options (Lists & Charts) are also not available to our Sales Executive role.

Roles access comparison

Similar access/restrictions are in place throughout the application, according to our customization while creating the Sales Executive role.