No permission to read or write entity Administration.Account (SAP Cloud Platform)

0
  I have (successfully) deployed an SAP app to the SAP Cloud Platform, but when I run the app after logging in with XSUAA the screen remains blank. Using the developer tools in Chrome I can see this error:    No permission to read or write entity Administration.Account, check security! t.(anonymous function) @ mxui.js?636580060944463390:1 mxui.js?636580060944463390:1 Uncaught Error: new MxObject(): cannot create Mendix object. Check entity access   The security levels of the project is set to Production, and for test purposes both the administration/user role have access to all pages, microflows and read/write to all entities. Anyhow, the entity Administration.Account is probably Mendix internally, so I don't have a clue which security settings I have missed. Does anyone have a clue?
asked
7 answers
3

Hi John,

We were facing a similar issue when integrating XSUAA with mendix, some of the things that you would have to check is if the role-template mapping is done in your SAP instance. You would have to add a role mapping where the Anonymous user should be mapped with Administrator role - since when you login with XSUAA creds the role of the user login will be anonymous and should be provided the Administrator role for the system to allow XSUAA to create a Account object for the login.

Also check the security configuration of the SAP instance that the SAP user account is provided the required access.

Reference: https://docs.mendix.com/refguide/sap/sap-xsuaa-connector


"They will be assigned to the roles in the Mendix application based on the scopes they have received from the XSUAA service. The scopes are defined by the mapping between the role templates and the role collections."

 

answered
0

Hi John,

What are your User Management setting for your user (role)?

answered
0

answered
0

Hi John,

I see that your administrator Userrole has the module role user in the administration module.

This should be set to the module role administrator:

answered
0

Hi Rene,

 

I have changed the settings accordingly (see screenshot), but still the same error:

 

answered
0

Not sure if this will help, but you can try setting entity access to yes in the create user microflow. 

answered
0

Hi Abhishek,

I have added a new Role Collection "Test" to the subaccount:

Then I have added this "Test" Role collection to the Administrator role:

 

However, I still get the same error when deploying and running the Mendix app. Did I miss something?

 

 

answered