Insufficient privelege for: (IItem)session.getObject(…);

Hi, Can you help me why I receive “Insufficient privilege” for the below row when I use the Save As function? I tried to give the PX to the appropriate privilege, but something is missing…

ISaveAsEventInfo f = (ISaveAsEventInfo) req;
 This row throws the exception => IItem newObj = (IItem)session.getObject(ItemConstants.CLASS_PART, f.getNewNumber());

Thanks, Feri

Agile User Asked on December 19, 2019 in Software Development Kit (API).
Add Comment
1 Answer(s)
Best answer

Hi Feri

Definitely sounds like you haven’t given the complete set of roles to the Event handler

One way to troubleshoot is to create a dummy user with the “exact” roles you gave to the event and see if you can search for the part number

– Raj

Agile Angel Answered on December 20, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.