Question

Rule Access Setting

Has any one used rule access setting in Access Roles? Help is not clear and can not understand any use cases for this rule type?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
January 5, 2016 - 1:09pm

Never used it, but here is my explanation.

Let's say you need to provide access to a particular area in your application based on the number of years of experience.

So Manager's need 5 Years of experience to access that feature in application while User's will need 8 Years of Experience to access that feature.

Now a Manager has below Access Role

App:Manager

And User have following AccessRole

App:User

And Admin has following Access Roles

App:User

App:Manager

So in this case, you will create a Rule-Access-Setting "Experience"  and specify in both access roles.

Mesh.png

So now at runtime, you can use function getSetting(AppliesTo, SettingName) to get the setting value for logged in operator and control application behavior access.

Also, notice that Multiple settings behavior will be useful for Admin which have both access roles with different settings for Experience, so the largest Experience will be picked, 8 in this case.

I know that this example doesn't makes much sense since i just went through the help but should be enough to understand the basics

Also Sort function can be used if Data type is string and you want to sort based on Card Type (Platinum > Gold > Silver)

Let me know if this helps.

Comments

Keep up to date on this post and subscribe to comments

January 5, 2016 - 12:21pm

Hello,

This is just another way to restrict extra privileges to specific roles. I guess the example provided on the HELP file is the best explanation:

role example capture.png

Pega
January 5, 2016 - 1:09pm

Never used it, but here is my explanation.

Let's say you need to provide access to a particular area in your application based on the number of years of experience.

So Manager's need 5 Years of experience to access that feature in application while User's will need 8 Years of Experience to access that feature.

Now a Manager has below Access Role

App:Manager

And User have following AccessRole

App:User

And Admin has following Access Roles

App:User

App:Manager

So in this case, you will create a Rule-Access-Setting "Experience"  and specify in both access roles.

Mesh.png

So now at runtime, you can use function getSetting(AppliesTo, SettingName) to get the setting value for logged in operator and control application behavior access.

Also, notice that Multiple settings behavior will be useful for Admin which have both access roles with different settings for Experience, so the largest Experience will be picked, 8 in this case.

I know that this example doesn't makes much sense since i just went through the help but should be enough to understand the basics

Also Sort function can be used if Data type is string and you want to sort based on Card Type (Platinum > Gold > Silver)

Let me know if this helps.

January 5, 2016 - 1:59pm
Response to rawap

Thanks for detailed explanation. So if want to use the setting as given in help example to route the assignment, we can create custom activity and route to operator based on the setting value.

Pega
January 5, 2016 - 2:03pm
Response to Mahee

Yes, you just have to use getSetting(AppliesTo, SettingName) function to get the value for current operator.