SAP Knowledge Base Article - Public

2929207 - Rule is Not Working for a Specific User

Symptom

You have created a UI rule (validation, mandatory, visibility or read only), however it's not working as expected for some users.

Environment

SAP Cloud for Customer

Reproducing the Issue

For example:

The USER001 has the BUSINESS ROLE 1 and BUSINESS ROLE 2 assigned.
However, you have created a UI rule using the condition MYUSERROLES()=="BUSINESSROLE1"
So, the rule is not working as expected for this user.

Cause

The reason for the issue is because the user has more then one business role assigned and the rule does not have all the roles.

Resolution

You must include all bussines roles assigned for the users in the rule.

For example:

The USER001 has the BUSINESS ROLE 1 and BUSINESS ROLE 2 assigned.
You must have to created a UI rule using the condition MYUSERROLES()=="BUSINESSROLE1,BUSINESSROLE2".

When using more than one business role, the system will read the business role list in alphabetic order, so the business roles need to be written in the rule in alphabetical order.
So, the rule will work as expected for this user.

Keywords

rule not working, UI rule, validation rule, visibility rule, rule for user , KBA , AP-RC-UIF-FLX , Page Layout & Key User Configuration , How To

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications 2002