Setting Your Script to Run With Administrative Privileges

Sometimes a script needs to do something the initiating user's role can't. In these cases, you can execute the script as Administrator so it can read or change restricted records-or perform other high-privilege tasks-without failing.

Choose Administrator in the deployment's Execute as Role field only when the script needs full privileges, regardless of who's logged in.

For example:

To run a script as Administrator:

  1. Go to Customization > Scripting > Script Deployments

  2. Edit the deployment you want to change.

  3. In Execute as Role, select Administrator.

  4. Click Save.

Important:

Because the Administrator role gives unrestricted access, use it sparingly and only when other roles can't meet the script's needs.

Related Topics:

General Notices