🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators AccessGroupsEnabled

AccessGroupsEnabled is an operator used to enable one or more access groups at runtime. It controls who is allowed to see or modify data and UI elements based on security groups defined in the model. This is not part of standard OCL.

Example:

Assume:

  • You have an access group called Managers
  • Sensitive data on Department should only be visible to managers
AccessGroupsEnable('Managers')

Users who belong to the Managers access group are granted access to protected Department features.

if self.IsActive then
  AccessGroupsEnable('Managers')
endif