make readonly using ACL

DevYadav
Tera Contributor

Hi Community,
Good Day!

I am stuck in a requirement that is:
need to make all fields of change request table readonly when state is close using ACL, i am using this, not know, on where i am making mistake, 

DevYadav_1-1725956728908.png

DevYadav_2-1725956745579.png


but it is not making all fields readonly:

DevYadav_3-1725956776006.png

 

thanks in Advance!

1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi @DevYadav,

 

To provide context for the 'why' here... there are many ACL's in place on both the table and field level.

However, one way you could override this at a table level would be the following 2 ACL's - show below.

(Name = change_request and operation = write)

Screenshot 2024-09-10 at 09.36.53.png

Simply uncheck the 'Admin overrides' checkbox (If you also want to ensure Admin's should not be able to edit these records) as well as updating the Condition field to the following:

Screenshot 2024-09-10 at 09.41.42.png

 

Obviously adjust if a role such as Change Manager etc does require edit access, but changes to these 2 ACL's will override the others and provide what you need.

As always - test test test to ensure other scenarios are catered for,

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

View solution in original post

3 REPLIES 3

saivishwaja val
Tera Contributor

Did you check other ACL available at form level which might be overriding this ACL

Robbie
Kilo Patron
Kilo Patron

Hi @DevYadav,

 

To provide context for the 'why' here... there are many ACL's in place on both the table and field level.

However, one way you could override this at a table level would be the following 2 ACL's - show below.

(Name = change_request and operation = write)

Screenshot 2024-09-10 at 09.36.53.png

Simply uncheck the 'Admin overrides' checkbox (If you also want to ensure Admin's should not be able to edit these records) as well as updating the Condition field to the following:

Screenshot 2024-09-10 at 09.41.42.png

 

Obviously adjust if a role such as Change Manager etc does require edit access, but changes to these 2 ACL's will override the others and provide what you need.

As always - test test test to ensure other scenarios are catered for,

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

Voona Rohila
Kilo Patron
Kilo Patron

Hi @DevYadav 

Can you check if there are any other write ACL's configured?

The ACL you configured will provide write access to all fields when state is closed for itil users, Please test for non-itil user.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP