Regarding Background Script

akshayjain
Tera Expert

Hello,

I am writing a Background script but while running, it is showing as Not authorized. what should I do?

1 ACCEPTED SOLUTION

Goutham sai
Tera Expert

Hi,

 

If we want execute the background scripts, at first we have to elevating our role to security admin.

 

Click on user menu(system administrator) =>click/select the elevate roles => click/select the security admin check box => execute/re run the script.

 

Please find the below screen shot for reference.

 find_real_file.png

Thanks,

 

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.

View solution in original post

2 REPLIES 2

Dubz
Mega Sage

What version of Service Now are you using? I think background scripts used to require elevated roles so try elevating your role to security admin and re-run.

Goutham sai
Tera Expert

Hi,

 

If we want execute the background scripts, at first we have to elevating our role to security admin.

 

Click on user menu(system administrator) =>click/select the elevate roles => click/select the security admin check box => execute/re run the script.

 

Please find the below screen shot for reference.

 find_real_file.png

Thanks,

 

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.