SG-14022 WorkOrderPart - PUT Sync Workorder Parts displays permissions error when updating reserved quantity - HxGN EAM - 12.2.0.2 - Release Notes - Hexagon

HxGN EAM Release Notes for 12.2.0.2

ft:locale
en-US
Product
HxGN EAM
Search by Category
Release Notes
HxGN EAM Version
12.2.0.2

Description

GET /workorders/{parentid}/parts works fine for my user but when I use the generated result on PUT /workorders/parts (Sync Workorder Parts) to update reserved parts quantity, I get the exception:

{{"Message": "Authorization failed. You are not authorized to perform this function.", "Name": "com.dstm.common.security.SecurityHandlerException"}}

I can update that reserved part quantity from the UI Work Orders | Tabs part without any issues plus the user I am using has connector license and all Interfaces related to Parts seem fine. Also no Deparment security is set and install parameters LGNCON = STD, DEPTSEC=OFF.

Attached is the response from the GET and the corresponding Call being used for PUT /workorders/parts (Sync Workorder Parts) .

*Steps to Reproduce*

# Navigate to Work Orders - Open an existing Work Order with Status ‘Released’ in record View

# Click on Parts tab - Add a part if non existent (Transaction type: Issue) then Save

# Update the Reserved quantity and Save - Observe this is Possible to save

# Open HxGN EAM Webservices [https://]

# Open Work Order Part - WorkOrderPart Webservice

# Authorize using basicAuth - the logon is provided in environment section

# Use GET /workorders/{parentid}/parts - by adding the following: tenant=Current Tenant, Organization=Organization ID on Work Order, ParentID=WO Number#Organization ID on WO. - Observe result returned.

# Copy above result to PUT /workorders/parts (Sync Workorder Parts)

# Change reserved quantity and Execute

*Expected Result:*

Response 200 should be received and part reserved quantity updated

*Actual Result:*

Error: response status is 400 received instead with error "Message": "Authorization failed. You are not authorized to perform this function.", "Name": "com.dstm.common.security.SecurityHandlerException"