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
StatementSyntax
Show project securitySHOW PROJECT SECURITY
Show module rolesSHOW MODULE ROLES [IN module]
Show user rolesSHOW USER ROLES
Show demo usersSHOW DEMO USERS
Show access on elementSHOW ACCESS ON MICROFLOW|PAGE module.Name
Show security matrixSHOW SECURITY MATRIX [IN module]
Alter project security levelALTER PROJECT SECURITY LEVEL OFF|PROTOTYPE|PRODUCTION
Toggle demo usersALTER PROJECT SECURITY DEMO USERS ON|OFF
Drop module roleDROP MODULE ROLE module.Role
Drop user roleDROP USER ROLE Name
Drop demo userDROP DEMO USER 'username'
Alter user roleALTER USER ROLE Name ADD|REMOVE MODULE ROLES (module.Role, ...)