How to fix View by user role

Inoue2
Tera Contributor

Hi, experts.

I would like to fix View by user role.

I have created one user and one role and assigned that role to that user.

I would like to do the following.

1. I would like to create a view that only that user can use.

2. If that user is in control, the view will appear on the screen.

3. However, if the controller is not that user, then the view cannot be used.

4. (if possible) It cannot be changed from its default view if that user is in control.

Please give me your hand.

I'm not good at English, If these sentences is hard to read for you, I'm apologize.

1 ACCEPTED SOLUTION

You can go to the UI views under the System UI look for your View in list, Open the record and you will be able to see. If no role is assigned then by default views are visible to Admin or Itil-user since they have access to create view and control them.

If you don't want admin to have access to the view you need to write another If statement and add the gs.hasRole("admin") and answer=false. Only this way you can revoke the admin access to views. As being admin, all access is available to them.

 

View solution in original post

10 REPLIES 10

Have the same issue, neither script nor Rule works, has anyone faced this before?