Applications Manager API returns 403 error when retrieving job prompts
search cancel

Applications Manager API returns 403 error when retrieving job prompts

book

Article ID: 452019

calendar_today

Updated On:

Products

Automic Applications Manager

Issue/Introduction

When attempting to retrieve job prompts via the Applications Manager REST API (/api/jobs/{job_name}), a 403 Forbidden GET error occurs, even if the user can successfully run the job through the user interface.

Symptoms

  • The spring.log reports error "org.springframework.security.access.AccessDeniedException: Cannot access objects of type Job"

  • When Requesting the Job, prompts can be seen in the submit window

Environment

Applications Manager (All versions supporting REST API)

Cause

The API endpoint for retrieving job prompts requires the user to have Jobs User Authority enabled. While Request User Authority is sufficient for interacting with Jobs via the UI (e.g., submitting a job), the REST API treats prompt retrieval as part of the job definition object, which requires higher-level permissions to access.

Resolution

To resolve this error, grant the necessary permissions to the user group:

  1. Log in to the Applications Manager console as an administrator.
  2. Navigate to Object Admin > Administration > User Groups.
  3. Select the User Group to which the affected user belongs.
  4. Navigate to the Assign tab.
  5. In the User Authorities section, ensure the Jobs is assigned.
  6. Click Apply/OK to save the changes.
  7. Attempt the REST API call again. The prompts should now be returned successfully in the JSON response.

Additional Information

  • If the issue persists after granting Job Authority, please check the $AW_HOME/log/spring.log file for further error details and open a support case if the error remains unresolved.
  • To speak with a customer representative or a Support Engineer, see Contact Support. Scroll to the bottom of the page and click on your respective region.