Hi, Conditions for hiding UI actions from End users

kurella swamy
Tera Contributor

Hello Everyone,

 

I'm looking for guidance on configuring UI actions so that the UI actions should not visible for end users or users without any roles. What are the required conditions to ensure that UI action are hidden from end users?

 

Thanks in advance

18 REPLIES 18

@Ravi Peddineni  below are the roles of business stake holder and they are not part of any group

kurellaswamy_0-1730135231684.png

kurellaswamy_1-1730135249822.png

 

@kurella swamy 

 

Use this condition:

 

gs.hasRole('business_stakeholder') || gs.hasRole('itil') || gs.hasRole('admin')

@Ravi Peddineni  Thanks for you support. I don't want to add all of these conditions But I want to write like (!gs.hasRole("role_name") here I unable to define the role of end user in the place of "role_name"

@kurella swamy 

 

Is there any technical restriction in using all the conditions?

 

Also, end users should have a defined User Criteria. You should get that criteria in order to know the roles given to END USERS. Then you can mention those roles in the condition.

There is no restriction just to check whether is it is possible to write like this or not.