You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Learn about the new Oracle AI Agent Studio for Fusion Applications: Watch Now

Progress with Redwood: Redwood Resources for Oracle Cloud HCM -  Go Here

Unable to call Invoke User Job Roles Assignment HCM API Through Groovy Scripts

edited Apr 16, 2025 1:03PM in HCM REST APIs 2 comments

Summary:

Unable to call Invoke User Job Roles Assignment HCM API Through Groovy Scripts (/hcmRestApi/scim/Roles)

Content (please ensure you mask any confidential information):

  • The issue is with the Payload Format the Groovy is accepting
    • POST MAN Payload
{
   "members": [
       {
           "value": "0271CF31B75046E0E0633BA9530A542D",
           "operation": "ADD"
       }
   ]
}
  • Groovy Payload
def members =
       [
         [
           value :"0271CF31B75046E0E0633BA9530A542D",
           operation :"ADD",
         ]
       ]
     //println(members)
     def CX_Roles =adf.webServices.JobRole.PATCH("5DB11B1A645B47F4B4FDA8AB7110A7D3", members)

System is throwing below when we try to invoke the Groovy Script.

Error Message:

Exception in expression "UserSecurity_c" object function test() : oracle.binding.expr.ServiceInvocationException Unexpected exception caught: oracle.adf.model.connection.rest.exception.RestConnectionException, msg=JBO-57001: Invocation of service URL used in connection failed with status code 500 Internal Server Error.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!