When attempting an OIDC authorization flow (e.g., calling the /authorize endpoint), the user is redirected to the redirect_uri with the following error after successfully entering credentials and providing consent:
error=access_denied&error_description=User+is+not+authorized
Policy Server Trace Log (smtracedefault.log): The logs show a successful authentication (AuthAccept) followed by an authorization failure during the OIDC provider check:
Access Log (smaccess.log):
Policy Server: All versions
The issue is caused by the user directory configuration within the OIDC Provider settings.
In SiteMinder OIDC configurations, the Authentication and Authorization section of the Provider setup requires a user directory to be mapped. Even if the user is successfully authenticated by a separate authentication scheme, they must also be authorized against the user directory configured in the Provider. If the user is missing from that directory, or if an Exclusion filter is applied that includes the user, the Policy Server will return a "Not Authorized" status.
To resolve this issue, ensure the user directory is correctly configured to authorize the impacted users: