# Creating a Role
In the image below it is possible to see a listing of all the roles accessible in a CoB server for the user register_demo
. Each role entry includes its given name, description, the name of the CoB product it is aimed at and the permissions that have been added to it. To create a new role, just click on the New Role
button located on the top right corner of the role listing.
After clicking the button, enter the Name
of the role you wish to create. The red asterisk - * - next to the input box tells us that the filling of this field is mandatory. Below it, there is a Product
field for selecting the name of the CoB module for which you want to build a role. Here is a brief explanation of each module:
- DeviceM - device management;
- RecordM - information management;
- Elasticsearch - search-related tasks;
- UserM - user management;
- Integration - integration-related tasks.
WARNING
Please be aware of the product you select for your newly created role. If you happen to assign a product to a role whose permissions are not supported by that product, the role is not going to work as expected, for instance:
- ❌Product:RecordM / group:create:1
- ✔Product:UserM / group:create:1
There is also an optional Description
field, in case you want to include a note about the aim of the group. When you are done, click the Save
button.
Later on, you can check and edit the data about the role by clicking on the DETAILS
link located the rightmost cell of the role entry:
Once in the details page of the selected role, you can get information about it such as its name, product for which it is aimed at, description and permissions.
Although you do have to access the Permissions
page to add permissions to a given role, once you add a permission you can directly remove it from the details page of a role. This is done by clicking on the red x
before the name of the permission.
In addition, it is also possible to click on a link to do a search for groups with this role.
After clicking on the link, you will be immediately sent to the following page:
In the video we include below, you can find a brief explanation of how to create a role within the CoB platform: