- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2020 02:12 AM
Hi,
I want to hide a field from sys_popup view but that field should be visible only to service_desk role users.
That role already exists in my instance.
Can anybody help me with that. Let me know if i can achieve this without coding.
Thanks,
Vaishnavi
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2020 05:02 AM
Hi,
Yes as you said intially that you have that role in your system right so you can add that role. No script needed. If on role then you need to script as below to see if the user if part of that group or not
if(gs.getUser().isMemberOf('sys_id of Service Desk Group')){
answer = true;
}else{
answer = false;
}
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2020 04:31 AM
Hello Vaishnavi,
Follow these steps.
1. as per your screenshot, under Name field, select sys_user table
2. Then select field name pin on the other dropdown
3. Then under roles select service desk
Save and and check it.
Mark the comment as helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2020 04:43 AM
Hi Asif,
Thank you 🙂
answer = getValue();
function getValue(){
return gs.getUser().isMemberOf('Service Desk');
}
after selecting role no need to write a script like this?
Thanks,
Vaishnavi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2020 04:48 AM
Hi Vaishnavi,
In case if its only Service Desk group users who have service desk role then no need to add scirpt as role would suffice.
In the Role just add requierd role of service desk. Did you check the link shared in comments before. It talks about the same & how to get it set up as well.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2020 01:53 PM
As others already mentioned, if you already have a role, then no need to script again. Just select the role, thats it.
Kindly mark the earlier comment as a correct answer if it has answered your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2020 05:02 AM
Hi,
Yes as you said intially that you have that role in your system right so you can add that role. No script needed. If on role then you need to script as below to see if the user if part of that group or not
if(gs.getUser().isMemberOf('sys_id of Service Desk Group')){
answer = true;
}else{
answer = false;
}
Thanks,
Ashutosh