Skip to content

Assign System module roles to user roles via MDL (resolve CE0156) #625

@ako

Description

@ako

Problem

CE0156 "User role should have at least one System module role" can only be resolved via the Studio Pro System module role GUI. There is no MDL way to assign System.* module roles (e.g. System.User, System.Administrator) to a user role.

Current behavior

User-role management (mdl/executor/cmd_security_write.go:190-303) supports CREATE [OR MODIFY] USER ROLE, ALTER USER ROLE ADD/REMOVE MODULE ROLES, DROP USER ROLE — but System module roles are not grantable through these paths. .claude/skills/mendix/manage-security.md:267 already notes this gap.

Request

Support granting/altering System module roles on user roles (e.g. ALTER USER ROLE <Name> ADD MODULE ROLES (System.User) if System roles can flow through the existing path, or a dedicated clause). Resolves CE0156 from MDL.

Full-stack touch points

  • mdl/grammar/MDLParser.g4, mdl/ast/ast_security.go, mdl/visitor/visitor_security.go
  • mdl/executor/cmd_security_write.go handler
  • mdl/backend/security.go + mdl/backend/mpr/ (+ mock stub)
  • .claude/skills/mendix/manage-security.md — document CE0156 resolution

Related

Companion to #7b (admin password). Same feedback item.


Source: customer feedback batch (2026-06). Reporter: Miwa. Reporter severity: 4/5.
Filed after codebase investigation at 297e0b0a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions