Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Use of accessibleIf with two name rights

TestUserme12
Level 1
Level 1

Hi Team,

 

I have a requirement to show PII data to a specific group's Users.

 

For this, I have created an Operator group and added a newly created name right to this group.

 

Now when I try to edit extended Recipients schema to add the new name right I'm not getting proper results.

Below is the example for this:

 

Original one: where only Admin can see the PII data

<attribute accessibleIf="$(login)=='admin'" dataPolicy="smartCase" desc="Recipient first name"
label="First name" length="300" name="firstName" type="string"/>

 

Modified by me for the requirement:

 

<attribute accessibleIf="$(login)=='admin'" enabledIf="hasNamedRight('viewPiiData')=true" dataPolicy="smartCase" desc="Recipient first name"
label="First name" length="300" name="firstName" type="string"/>

 

So, How can modify the above code in such a way where along with admin the group members who have name right (ex: name right internal name is : viewPIIData) both can view the first name?

 

let me know if this information is not sufficient.

 

1 Accepted Solution
wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

 

Set the accessibleIf attribute to hasNamedRight('viewPiiData').

 

Thanks,

-Jon

View solution in original post

4 Replies
wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

 

Set the accessibleIf attribute to hasNamedRight('viewPiiData').

 

Thanks,

-Jon

View solution in original post

TestUserme12
Level 1
Level 1
Thanks Jon for ans, but I want to use both Admin and viewPiiData, how I can do that?
wodnicki
Community Advisor
Community Advisor
Having admin right essentially means 'ignore permission system', it can be omitted here.