I want to hide a field from a sys_popup view

Vaishnavi35
Tera Guru

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

1 ACCEPTED SOLUTION

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

View solution in original post

13 REPLIES 13

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

Unfortunately, as far as I know, the reference icon hover over popup does not run client scripts when the popup generates. 

So might not be possible using UI policy or client script,

 

But i think you can do it using ACLs.

https://community.servicenow.com/community?id=community_question&sys_id=db319fe9dbdcdbc01dcaf3231f96...

Thanks,
Ashutosh

Hi Ashutosh,

I have tried testing in OOB instance it says action not authorised for ACL.

find_real_file.png

Name here it is sys_user right?

 

 

My issue - there is a button which shows my user record information like this,

find_real_file.png

I want to Hide the Password Reset Pin field when anybody tries to open it.As its showing the Pin there.

 

Only visible to users with service_desk role.

Thanks,

Vaishnavi

HI,

The ACL is wrong.


You need to select table as user table and field.

incident.password reset pin.

Same read acl.

Thanks,
Ashutosh

Hi,

Okay. 

Under roles... i have to just give service_desk role?

can you help me with ACL

Thanks