Create a role

Anna_Servicenow
Tera Guru

We have a scoped application "Billing Task". How can I create a role which give user a read only access to the module but do need to ensure this role is able to write to comments and work_notes on the task table

4 REPLIES 4

Pratiksha
Mega Sage
Mega Sage

Did you create table to store this task? OOB read ACL should already be present. That role you need to give to someone when you want to give the read access. 

This is a custom scoped application which was present, now a user needs read only access to this . I could not find any specific role

Grant the same access as 'normal' user, but add the 'read-only' to it as well.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Vrushali  Kolte
Mega Sage

Hello @Anna_Servicenow ,

 

If you don't have any existing role, you can create a new role by -

 

  • Navigate to System Security > Roles.
  • Click New to create a new role.
  • Enter a name for the role, such as billing_task_read_only_with_comments.
  • Save the role.

Set Up Read-Only Access to the Module:

  1. Navigate to System Definition > Modules.
  2. Locate the module you want to control access to.
  3. Open the module record and scroll down to the Roles tab.
  4. Add your newly created role to the module's roles list.
  5. Ensure that the permissions for this module are configured to allow only read access.

Configure Table-Level Permissions:

  1. Navigate to System Security > Access Control (ACL).
  2. Create or update (If OOB ACL is available)ACLs for the task table:
    • Read ACL: Ensure the read ACLs for the task table only grant read access. This will ensure the user can view the tasks.
    • Write ACLs for Comments and Work Notes:
      1. Create a new ACL for the task table with the operation set to write.

      2. In the conditions or script, restrict the ACL so it only applies to comments and work notes fields. You can use a script like:

 

 

(current.field_name == 'comments' || current.field_name == 'work_notes')

 

                    3. Ensure this ACL has the new role granted the necessary write access to these fields.

 

 

If my answer helps you in any way, please mark it as Accepted✔️ and Helpful👍.