My Oracle Support Banner

Policy Administration REST API Fails To Create Authorization Policy With Attribute Condition (Doc ID 1907134.1)

Last updated on OCTOBER 20, 2023

Applies to:

Oracle Access Manager - Version 11.1.2.1.0 and later
Information in this document applies to any platform.
Oracle is not responsible for instructions/information from 3rd party sites that may be contained in this KM note.

Symptoms

When trying to add an authorization policy which contains an attribute condition using the policy administration REST API as below. a 500 error is returned.

curl -u <WLS_ADMIN>:<WLS_PASSWORD> -H "Content-Type: application/xml" --request POST --data "@<HOME_USER>/authz_policy.xml" http://<OAM_FQ_HOSTNAME>:<OAM_PORT>/oam/services/rest/11.1.2.0.0/ssa/policyadmin/authzpolicy

If the attribute condition is removed, the same xml file will load successfully.  If the same policy is added manually and displayed using the API, the structure displayed is identical to what was in the xml file.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.