Skip to content

clsPolicyData.UserAccessLevels

UserAccessLevels ranks the audiences that read policy data, from SAIFEmployee at 1000 down to QuickFileUser at 300. The numeric ordering is deliberate: comparisons treat a higher value as strictly more privileged. Every external audience has a paired demo level fifty points lower, which is how the library distinguishes a real external user from a demonstration account that must see masked data.

Purpose

  • Ranks the audiences that consume policy data, so that visibility decisions can compare levels rather than enumerate roles (BR-012).
  • Pairs every external audience with a demo variant, which drives address and agency masking (BR-013).
  • Supplies the default SAIFEmployee level used when a caller does not specify one (BR-010).

Context

  • Namespace: SAIF.Business.View.Policy
  • Assembly/package: SAIF.BOF.Business.View.Policy
  • Declared in: Business/SAIF.Business.View.Policy/clsPolicyData.vb

Public members

Member Signature Purpose
SAIFEmployee SAIFEmployee = 1000 Internal SAIF staff — the most privileged level, and the default when a caller supplies none (BR-010).
Auditor Auditor = 900 A fee auditor, who sees only policies with a current audit assignment (BR-008).
DemoAuditor DemoAuditor = 850 A demonstration account behaving as an auditor; its data is masked (BR-013).
Losscontrol Losscontrol = 800 A loss-control consultant, who sees only policies they are assigned to (BR-007).
DemoLossControl DemoLossControl = 750 A demonstration account behaving as a loss-control consultant; its data is masked (BR-013).
Agent Agent = 700 An agent or agency, who sees only policies they produce (BR-004).
DemoAgent DemoAgent = 650 A demonstration account behaving as an agent; agency and address detail is masked (BR-013).
Group Group = 600 A group programme administrator, who sees the policies in their group and chapter (BR-006).
DemoGroup DemoGroup = 550 A demonstration account behaving as a group administrator; its data is masked (BR-013).
Policyholder Policyholder = 500 A policyholder, who sees their own policy and policies under the same parent (BR-005).
DemoPolicyholder DemoPolicyholder = 450 A demonstration account behaving as a policyholder; its data is masked (BR-013).
QuickFileUser QuickFileUser = 300 The least privileged level; affiliated policies are hidden entirely (BR-011).

Note: Statements marked with † are derived from dependency library documentation via the Legends CLI. Statements marked with * were inferred from code structure or contextual evidence. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business/SAIF.Business.View.Policy/clsPolicyData.vb