Creation of work items follow-up action in another project area [5.0.2]
Hello,
now we are not sure whether this user will be a part of the other project area [PA2] so then he will not be able to create the work item and an exception would be thrown (saying could not save the work item permission denied).
We have a scenario where a work item has to be created in another project area [PA2] during the follow-up action running in another project area [PA1]. When the follow up action runs it takes the permission of the authenticated user and performs the follow-up action ie permissions of both [PA1+PA2].
now we are not sure whether this user will be a part of the other project area [PA2] so then he will not be able to create the work item and an exception would be thrown (saying could not save the work item permission denied).
Is there any way we could overcome this exception or can we use a default user credentials to run this follow-up action?
Thanks in Advance.
One answer
As far as I am aware, operational behavior is always run in the context of the logged in user. I am not aware of a way to elevate the permission. You could maybe try to run a scheduled task ( https://jazz.net/wiki/bin/view/Main/QueryDevGuide and https://jorgediazblog.wordpress.com/2013/06/28/rtc-custom-scheduled-async-task-example-explained/ ), which runs in a different user context. This would however have other implications if it works at all.