An error while trying to make a "POST" REQUEST at Url: "https://api.eu.cloud.trados.com/public-api/v1/tasks/<taskId>/target-files/<fileId>/versions

Hi!

In our connector we have Automatic Task which makes machine translation and adds new file version to the target file.

It worked fine last week, but now we get error:

{"errorCode":"differentServiceUserOwner","message":"The task has a different service user owner.","details":[]}

How it possible and how we can resolve this issue?
Parents
  • Hi  , it is what it says in the message. The token yr using to call the endpoint probably does’not belong to the same service user that owns the task. The API is preventing the user from accessing task scoped artifacts (like target file versions) when the authenticated service user differrs from the task’s service user owner.

    To fix, you'd need to make sure the workflow’s automatic step that creates ‘n runs the task is configured to ‘Run as’ the same service user as your connector (the same clientId you use to obtain the token).

    Please also make reference to this page detailing how to report an issue, so that we can provide better support.

    Patrick Andrew Hartnett | Developer Experience | Team Lead | RWS Group

Reply
  • Hi  , it is what it says in the message. The token yr using to call the endpoint probably does’not belong to the same service user that owns the task. The API is preventing the user from accessing task scoped artifacts (like target file versions) when the authenticated service user differrs from the task’s service user owner.

    To fix, you'd need to make sure the workflow’s automatic step that creates ‘n runs the task is configured to ‘Run as’ the same service user as your connector (the same clientId you use to obtain the token).

    Please also make reference to this page detailing how to report an issue, so that we can provide better support.

    Patrick Andrew Hartnett | Developer Experience | Team Lead | RWS Group

Children