This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Calling Scripts via Application Server RESTful API using Common_StartScripts permission not working

Hi,

We are trying to call a custom script via the Application Server RESTful API. 

We have made sure that the user who does this has an application role assigned which has the permission group Common_StartScripts. 
This application role also has the permissions groups Common_TriggerEvents and Common_StartCustomizerMethods, and the user can successfully call both events and methods directly via the API. 

When we call the custom script the following error is shown: 

(part of the returned json)

"number": 810323,
      "message": "You are not authorized to run this method.”

 

We believe the error could be due to the reason that the custom scripts within its code calls the FillOrder method. This is perhaps an issue as this method can only be executed via job server. Perhaps via the API when this script is called it presents this error before even running it? 
Currently we can call the custom script via a process chain which is tied to an Event, and  this event is then called via the API.

Is the above assumption correct or are we missing something?

Any help its greatly appreciated as usual.

Kind regards,

Ash

Parents
  • Hi Barry,

    Thanks for the reply, I just checked and in fact 'Not Available' is not marked.
    So at least in my case this is not the issue.

    The person can request this product via the web portal or via the script thats mentioned at the beginning of this thread but doesnt seem to be able to via the RESTful API call.


    Thanks again for your answer though.

     

    Ash

  • I know this issue is over a year old, but we have the same exact problem. We are trying to generate a request via the API and are receiving the same not authorized error. The user making the request should have all the rights required, can make the request via ITShop with no issues, and has view/edit/insert rights to the PWO table. Here is the exact response given:

    {"responseStatus":{"message":"This employee Fellers Joshua (JOSHUA.FELLERS) is not authorized to make requests at this point."},"errorString":"This employee Fellers Joshua (JOSHUA.FELLERS) is not authorized to make requests at this point.","exceptions":[{"number":2133173,"message":"This employee Fellers Joshua (JOSHUA.FELLERS) is not authorized to make requests at this point."}]}

Reply
  • I know this issue is over a year old, but we have the same exact problem. We are trying to generate a request via the API and are receiving the same not authorized error. The user making the request should have all the rights required, can make the request via ITShop with no issues, and has view/edit/insert rights to the PWO table. Here is the exact response given:

    {"responseStatus":{"message":"This employee Fellers Joshua (JOSHUA.FELLERS) is not authorized to make requests at this point."},"errorString":"This employee Fellers Joshua (JOSHUA.FELLERS) is not authorized to make requests at this point.","exceptions":[{"number":2133173,"message":"This employee Fellers Joshua (JOSHUA.FELLERS) is not authorized to make requests at this point."}]}

Children