Skip to main content
Question

How to skip Branch Access Rights Verifiation in Selectors

  • August 24, 2024
  • 0 replies
  • 26 views

aaghaei
Captain II
Forum|alt.badge.img+10

I have a special use case that I need to have Acumatica Engine to skip Branch Access Rights verification on a specific Selector. Out of the box, when Access Right is imposed to Companies/Branches using the User Roles, Whereever Acumatica Engine points BranchID in a DAC which is subject to Row Level Security adds a clause to where statement something like

BranchID IS NULL OR BranchID IN (IDs of the branches user has access)

How I can force the system to skip these access verification in a specific selector. I have used CacheAttached Event and am “Replacing” the selector attributes but still the list is shown is filtered by the branches user has access. I tried a simple selector something like

[PXSelector(typeof(Search<CashAccount.cashAccountID>))]

but still I see where statement is appended to limit the branches user has access. How I can go around this?