Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

ACL Issue on reference field

bscherer
Giga Guru

I am having an odd issue with a reference field and acls on the destination table.

Table B references two fields on Table A.  These fields are not visible from Table B form, but work fine when hitting Table B directly.

 

Debugging Security,  I see a True check for base table access, True for access to both fields and a failure check for Base Table/.* fields.

 

I feel like i'm missing something obvious here.

 

Thanks

find_real_file.png

 

 

 

 

1 ACCEPTED SOLUTION

bscherer
Giga Guru

Looked at it again this morning and have it working now.

 

TableA/Read - Role

TableA.*/Read - Script: answer=false; - Role

tableA.Field1/Read - Role

TableA.Field2/Read - Role

View solution in original post

4 REPLIES 4

Daniel O_Connor
Kilo Guru

Do you have a tablea.<none> and tablea.* read ACL for the custom role? 

 

  • TableA.<none>(as in no fields selected) provides the role access to the table
  • TableA.* provides access to the fields in the table
  • TableA.<field> provides access to the specific field

I'd a similar problem to yourself and someone explained the above to me. This three level of ACL seems to work for whatever I need in terms of providing field access on custom roles or custom tables.

 

bscherer
Giga Guru

Thanks for the reply Daniel.

 

When i add TableA.*, in addition to the specific fields, all fields on the table are accessible. 

 

 

bscherer
Giga Guru

Looked at it again this morning and have it working now.

 

TableA/Read - Role

TableA.*/Read - Script: answer=false; - Role

tableA.Field1/Read - Role

TableA.Field2/Read - Role

Glad to hear.

 

I've got my head around ACL's in the last while but used to be probably the most frustrating part of custom apps I'd do