Sites privilege issue during Java PX extension

Hi all,
We have Agile PLM with manufacturing sites functionality implemented.

There are 5 sites in the system.

Each user has permission  only on specific sites (f.e 2 of 5 or 1 of 5).

We need  to create process extension  triggered by user action ( f.e.on creation of  part)  and logic in the extension  should have access to all sites and manipulate item sites rows.

The problem is what the extension runs with permissions of the user and able to  see only sites for them user restricted. Since permissions on site are not managed via roles – setting Role of event handler is helpless.

Is someone faced the same problem?

May we open another Agile session ( with user which has permission on all sites) to achieve this?

or may be 
Is there way to raise  event from another event? 
Any help is very much appreciated.
10x.

Add Comment
1 Answer(s)

Creating another session using an user who has access to all sites is the only option since PX role just elevates the current user’s role and sites are not dependent on roles.

Thanks,
Jagadish

Agile Angel Answered on July 20, 2017.

Hi Jagadish,
Yes, we made this with opening of new session and re queryng of modified object in new session. Looks ok.
Thank you very much for your help

on July 20, 2017.
Add Comment

Your Answer

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