Skip to main content
Version: v2.14.x LTS

Configuring SAF resource checking

Configuring SAF resource checking

Roles: system programmer, system administrator, security administrator

You can use various SAF resource providers depending on your use case to handle the SAF authorization check. Follow the procedure in this article that applies to your specific configuration use case.

SAF Resource Checking Providers

API ML can check for the authorization of the user on certain endpoints. Access to a SAF resource is checked with ESM.

Verification of the SAF resource is provided by the following three providers:

  • endpoint
    This is the highest priority provider, such as a REST endpoint call (ZSS or similar one). This option is disabled by default. In Zowe, ZSS has the API to check for SAF resource authorization.

  • native
    The Native JZOS classes from Java are used to determine SAF resource access. This is the default provider.

  • dummy
    This is the lowest priority provider. This is the dummy implementation and is defined in a file.


Verification of the SAF resource uses the first available provider based on the specified priority. The default configuration resolves to the native provider.

You can select a specific provider by specifying the key in the zowe.yaml file. Use the parameter value to strictly define a provider. If verification is disabled, select the endpoint option.

  1. Open the file zowe.yaml.
  2. Find or add the property and set desired value.
  3. Restart Zowe.

Examples: endpoint

To configure the endpoint provider, add the following additional property: true native dummy

To use the endpoint provider, customize the URL corresponding to the SAF resource authorization. By default, the ZSS API is configured and used.

  1. Open the file zowe.yaml.
  2. Find or add the property and set desired value. The default value for ZSS API is https://${ZWE_haInstance_hostname}:${GATEWAY_PORT}/zss/api/v1/saf-auth
  3. Restart Zowe.

REST endpoint call

The REST provider calls the external API to retrieve information about access rights. To enable the feature outside of the mainframe, such as when running in Docker, you can use a REST endpoint call using the GET method:

  • Method: GET
  • URL: {base path}/{userId}/{class}/{entity}/{level}
  • Response:
"authorized": "{true|false}",
"error": "{true|false}",
"message": "{message}"

For more information about this REST endpoint call, see ZSS implementation.


The Native provider is the easiest approach to use the SAF resource checking feature on the mainframe.

Enable this provider when classes and are available on the classpath. This approach uses the following method described in the IBM documentation: method.


Ensure that the version of Java on your system has the same version of classes and method signatures.

Dummy implementation

Use the Dummy provider for testing purpose outside of the mainframe.

Create the file saf.yml and locate it in the folder, where is application running or create file mock-saf.yml in the test module (root folder). The highest priority is to read the file outside of the JAR. A file (inner or outside) has to exist.

The following YAML presents the structure of the file:

- {UserID}
  • Classes and resources are mapped into a map, user IDs into a list.
  • The load method does not support formatting with dots, such as shown in the following example: Example: {CLASS}.{RESOURCE} Ensure that each element is separated.
  • The field safAccess is not required to define an empty file without a definition.
  • Classes and resources cannot be defined without the user ID list.
  • When a user has multiple definitions of the same class and resource, only the most privileged access level loads.