Error: No permission to read or write attribute Blocked of entity Administration.Account
Hi, We have a user with the role FunctionalManager, who's able to add and edit accounts. However, when editing an account, the following message appears on the fields Blocked and Active: Could not create widget mxui.widget.BoolSelect: Error: No permission to read or write attribute Blocked of entity Administration.Account, check security. When checking the domain model, there's indeed no read/write access to USER.Blocked / USER.isActive. So this is correct. The problem however is that, since the System domain model is uneditable, there's no way to fix this. We do want the user with the Role functional manager to see these fields... What to do? Or am I missing something? //Edit after some testing (And help from Querijn ) We found the following: Currently, The functional Manager is allowed to edit users with 3 roles ( InvoerAcceptatie / Planning and Expert) While this is true, we get the error: However, when we set the ' manageble users' to ALL. The error is gone. Seems like a bug? Filed a ticket and linked to this question.
In the past I've used an approach where I showed Microflows buttons in a table where the rows where conditional visible based on the 'blocked' attribute.
When you don't apply entity access to the microflow you should not have issues with security in order to be able to change the 'blocked' attribute. Give your buttons appropriate captions. E.g. Unblock this user/ Block this user.
I solved it by assigning the User role in User management. I don't get the eror after this anymore.
Thanks to Bart from Mendix
Those two attributes have their entity access set in the System module, not in the Administration module. So your new role has to be an Administrator in the System module and not just User.