I am experimenting out with openam (installation discussed here ) as solution to my single sign on ( SSO ) need when I got below error while making API call to its REST services. The detail of all its REST services is available here .
The requested resource (/openam/json/users/) is not available
This is very strange as I am making the calls exactly as specified in there documentation here . Some of the base URL they have mentioned as example is as below.
https://openam.example.com:8443/openam/json/users/?_action=create # for creating users
https://openam.example.com:8443/openam/json/users/bjensen # for updating user called bjensen
The documentation, expect json data in the payload
So, I’ am doing everything right, but strangely error keep occurring. From, the error itself I can figure out that the problem is with the REST API url they have documented i,e the URL itself is not valid. But, now what I can do. May, be Iam using older version of openam. But it is not the case as I have downloaded and installed the latest version 10.1.3 .
Pulling, my hair for hours, before deciding to use there older API available here .
Strangely, It worked. It specified the REST url as below
https://openam.example.com:8443/openam/identity/create # for user creation
https://openam.example.com:8443/openam/identity/update # for user updation
https://openam.example.com:8443/openam/identity/delete # for user deletion
SOLUTION : Use the old REST API of openam instead of current one. The legacy API is documented here . I think, they have released the documentation before releasing the version which support it. So use the older API and it will work fine.