REST call returns HTTP 403 forbidden

Symptom

REST API call returns HTTP 403 forbidden

Cause

The REST API user has no privileges to access the method or data.

Solution

Make sure that the user you use for REST is member of a Role that gives sufficient privileges for its operations.

For example the user needs _APIRead or _APIReadWrite to use REST at all.

To access data from a device you need a _ReadData privilege. More info here.

To read jobs you need _DispatchReadAllJobs

All privileges are listed here.

A very useful way to see the privileges of a user is to right-click on it in an application and select Overview.