Received error trying to validate JCL using the JCLCheck Plug-in for Zowe CLI:
Command Error:
z/OSMF REST API Error:
Rest API failure with HTTP(S) status 403
messages:
-
messageType: ERROR
messageNumber: ZWEAS403
messageContent: The user is not authorized to the target resource: Access is denied
messageReason: The service has accepted the authentication of the user but the user does not have access right to the resource.
messageAction: Contact your security administrator to give you access.
messageKey: org.zowe.commons.rest.forbidden
messageParameters:
- Access is denied
messageInstanceId: 7c4032cd-abd1-4ac3-b182-e87d2ce1efa7
messageComponent: org.zowe.commons.spring.CustomRestExceptionHandler
messageSource: company.com:nnnn:jclcheckservice
Error Details:
HTTP(S) error status "403" received.
Review request details (resource, base path, credentials, payload) and ensure correctness.
Host: company.com
Port: nnnn
Base Path:
Resource: api/v1/check/dataSet/HLQ.TEST.JCLLIB(IEFBR14)?options=SEC
Request: PUT
Headers: []
Payload: undefined
Release : 12.0
Component :JCLCheck Workload Automation
JCLCheck REST API
The userid is not authorized to use the JCLCHECK.SERVICE API.
User must be granted READ access to the JCLCHECK.SERVICE SAF resource.
Instructions: