The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to make a field editable for specific roles?

Kiran_25
Tera Expert

Hi

I need to make a field on the cmdb_ci_business_app editable for a users with a specific role.

I have created a 'write' ACL but the field is still read only.

 

Is there anything I have missed or is there another way to achieve this?

1 ACCEPTED SOLUTION

Shashank_Jain
Kilo Sage

@Kiran_25 ,

1. Check UI Policies, Client Scripts, or Dictionary Overrides that may be making the field read-only.

2. Check with an admin user – see if the field is editable.

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain

View solution in original post

7 REPLIES 7

Hi @Kiran_25 ,
You can try Creating a script condition in the existing ACL with gs.hasRole('x'), as creating a new ACL for the same field/write combination won’t work, because all matching ACLs must evaluate to true. That means if your new ACL passes but the old one restricts access, users will still be blocked. 

If you want to confirm behavior, use Access Analyzer with a  test user  you’ll see which ACLs are being enforced.


Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

@Kiran_25 

it means some other component is doing the job here.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Shashank_Jain
Kilo Sage

@Kiran_25 ,

1. Check UI Policies, Client Scripts, or Dictionary Overrides that may be making the field read-only.

2. Check with an admin user – see if the field is editable.

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain