My Oracle Support Banner

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

Last updated on NOVEMBER 07, 2019

Applies to:

Oracle Access Manager - Version 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.


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/

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.


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

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