demo user roles showcasing error - Executing action failed for security reasons: DS_Account_CurrentUser

0
For become a Rapid Developer in Module 9 in 9.4.3 - Configure Demo Users, when I try to run the app and login with MxAdmin / 1 it's throwing the below error :
asked
2 answers
0

This error occurs because the logged-in user role (for example MxAdmin or a demo user) does not have permission to execute the microflow used as the data source: DS_Account_CurrentUser.


Please check the following:


  1. Go to Project → Security in Studio Pro.
  2. Open the module where DS_Account_CurrentUser is located.
  3. In Microflow access, grant access to this microflow for the relevant module role(s).
  4. Also verify that the role has read access to the entity returned by the microflow (for example Administration.Account or System.User) under Entity access.
  5. Run the application again.


If this resolves the issue, please close the topic.


answered
0

hi,


This error is purely a security configuration issue.

DS_Account_CurrentUser is a microflow data source, and the logged-in role (MxAdmin / Demo user) does not have permission to execute it.

Fix:

  1. Open DS_Account_CurrentUser
  2. → Properties
  3. Allowed roles
  4. → Add the required module roles (e.g., Administrator / Demo_User).
  5. Check Entity Access for Administration.Account
  6. → Ensure the same role has at least Read access.
  7. Verify the page using this datasource is visible for that role.

After aligning microflow access + entity access + page access, the error will be resolved.

This is standard Mendix security behavior when running in Production security mode.

answered