Trying to use API access in MRO - Heavy Maintenance - Cloud 24R2 SU5
The API call has dual output, depending if the user logged in has assignments or not :
Authenticating with the assigned user (RADPA), we’re collecting data:
{"@odata.context":"https://xxxx.ifs.cloud/main/ifsapplications/projection/v1/MroTechnicianTaskExecutionHandling.svc/$metadata#CompletedAssignmentsSet/$entity","@odata.etag":"W/\"Vy8iQUFBWXpSQUJXQUFNRXJ0QUFGOjUi\"","luname":"JtExecutionInstance","keyref":"EXECUTION_INSTANCE_SEQ=2^TASK_SEQ=75^","Objsite":"1550","Objstate":"ACCEPTED","Objgrants":null,"TaskSeq":75,"ExecutionInstanceSeq":2,"CreatedDate":"2025-05-16T11:52:48Z","TaskResourceSeq":null,"AllocatedHours":7,"CreatedBy":"RADPA","ResourceSeq":1197,"AssignmentStart":null,"AssignmentFinish":null,"AllocatedStart":"2025-04-10T15:39:28Z","AllocatedFinish":"2025-04-24T22:39:00Z","FixedStart":null,"FixedResource":true .. and so on
Authenticating with an integration user named MRO (service user) which can’t be used for assignments, or trying to query an assignment not assigned to the logged in user (RADPA): (e.g. https://xxxx.ifs.cloud/main/ifsapplications/projection/v1/MroTechnicianTaskExecutionHandling.svc/OngoingAssignmentsSet(TaskSeq=178,ExecutionInstanceSeq=1) ) returns error.
{"error":{"code":"ODP_RESOURCE_NOTFOUND","message":"Resource not found."}}
The expected result is something similar with the 1st try, when logged in with an UI user.
Is this dual output a known bug or expected functionality?
Question 1 - How can I query via service users all tasks assigned and who are they assigned to?
Question 2 - Is there a way to “impersonate” an UI user while doing the API call with a service user?
We’re on Cloud 24R2 SU5, trying to list all available tasks to work on and their statuses on a shop-floor dashboard using standard IFS API - REST calls