Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Security Statements

Statements for managing project security: module roles, user roles, entity access rules, microflow and page access, demo users, and project-level security settings.

Mendix security operates at two levels. Module roles define permissions within a single module (entity access, microflow execution, page visibility). User roles aggregate module roles into project-wide identities assigned to end users.

Statements

StatementDescription
CREATE MODULE ROLECreate a role within a module
CREATE USER ROLECreate a project-level user role aggregating module roles
GRANTGrant entity, microflow, page, or nanoflow access to roles
REVOKERemove previously granted access
CREATE DEMO USERCreate a demo user for development and testing
UPDATE SECURITYRe-sync entity access rules with the domain model (CE0066)
StatementSyntax
Describe app securityDESCRIBE APP SECURITY
Show module rolesLIST MODULE ROLES [IN module]
Show user rolesLIST USER ROLES
Show demo usersLIST DEMO USERS
Show access on elementLIST ACCESS ON [ENTITY|MICROFLOW|PAGE|NANOFLOW] module.Name
Describe security matrixDESCRIBE SECURITY MATRIX [IN module]
Alter app security levelALTER APP SECURITY ( SecurityLevel: OFF|PROTOTYPE|PRODUCTION )
Toggle demo usersALTER APP SECURITY ( EnableDemoUsers: TRUE|FALSE )
Toggle strict modeALTER APP SECURITY ( StrictMode: TRUE|FALSE )
Toggle guest accessALTER APP SECURITY ( EnableGuestAccess: TRUE|FALSE [, GuestUserRole: UserRole] )
Drop module roleDROP MODULE ROLE module.Role
Drop user roleDROP USER ROLE [IF EXISTS] Name
Drop demo userDROP DEMO USER [IF EXISTS] 'username'
Alter user roleALTER USER ROLE Name ADD|DROP MODULE ROLES (module.Role, ...)