System.UserRole cannot be obtained when registering, the display value is (empty)

0
Open the registration page Click Save to submit, error popup box Put a break point The employee_role is (empty).
asked
5 answers
0

Hi man,

 

Check the security. and retrive the list of roles from the data base.

 

answered
0

Hii ZhuXiaoqin,

 

I hope you have created a user role with name 'Employee' and make sure it is assigned with module role too.

answered
0

The error says that you cannot create the account due to security reasons.

1) what is the user role you logged in with and is it linked to the a module role with the correct access to be able to read user roles and create an account?

2) Is the user role allowed to create users with the employee role?

image.png

answered
0

ZhuXiaoqin,

 

See that anonymous module role has the access to create objects and access to read and write the objects as shown in the image. So that anonymous module role can create a new registration or edit

 

 

 

 

Screenshot 2023-12-14 154531.png

answered
0

ZhuXiaoqin,

 

 

I think your domain model looks same as this. as per my assumption. 

If it is, Then retrieve the user role and create an object of persistable entity with assigning members. I hope it will work. 

Else share your microflow and domain model if it isn't solved.

 

image.png

 

image.png

 

image.png

answered