Restricting Data Access in MDriven can be achieved in 3 ways, as follows.
Below is a sample model with a singleton class that has 2 attributes, Allowed Access and Interested, which are Booleans.
Access Groups

Create Access Groups through the AccessGroups Editor in the Designer as shown below.
Add this OCL Expression to the View Enable Expression (Enable of ViewModel edit Controls).
Singleton.oclSingleton.AllowedAccessTo enable the AccessGroup on a ViewModel, click on the 3 dots at the extreme end of the AccessGroups label. This will load the Access groups view. Select the access group to control the page:
2️⃣![]()
Run the application in the browser and select the different Access groups. Observe the page response when the different access group to which the page is not attached responds, as shown above.
Interest Groups
Note that interest groups are evaluated after access groups. Access groups control whether we can show the tagged action to the user or not. Interest groups only control the visibility of a tagged action. They are also used to declutter the left-side menu.
