ACL: Crafting Table and Field Level ACLs for Role-Based Permissions

senon
Tera Sage

Hello experts!
I have a requirement to implement an ACL that only allows writing to certain fields.

■Requirements
- A user with [Role X] exists.
・The custom table has fields A, B, C, D, and E.
- Users with [Role X] can only write A, B, and C.
- All fields can be read, but D and E cannot be written.

■Problem
I don't know how to write table level and field level ACLs to achieve the above requirements.

I configured the settings as below, but now all fields can be written.

 

 

TypeOperationnamehas role
recordwrite<table_name>_NONERole X
recrodwrite<table_name>_ARole X
recrodwrite<table_name>_BRole X
recrodwrite<table_name>_CRole X

 

I look forward to hearing from you.

 

best regard
senon

1 ACCEPTED SOLUTION

Anand Kumar P
Giga Patron
Giga Patron

Hi @senon ,

1)Have a write ACL at table level NONE acl rolex
2)Have a write ACL at the table.* level rolex that will lock all fields
3)Have a write ACL at the table.field level with role X that will grant access to the specific field.(do same for other 2 fields )
The table.field ACL will take precedence over the table.* ACL.

Please mark it as helpful and solution proposed if it serves your purpose.

Thanks,

Anand

View solution in original post

1 REPLY 1

Anand Kumar P
Giga Patron
Giga Patron

Hi @senon ,

1)Have a write ACL at table level NONE acl rolex
2)Have a write ACL at the table.* level rolex that will lock all fields
3)Have a write ACL at the table.field level with role X that will grant access to the specific field.(do same for other 2 fields )
The table.field ACL will take precedence over the table.* ACL.

Please mark it as helpful and solution proposed if it serves your purpose.

Thanks,

Anand