Project and Portfolio Management Practitioners Forum
cancel

Set Security for 1st subworkflow step

Highlighted
Alexander (Sua)
Regular Collector

Set Security for 1st subworkflow step

I have main WF where I call a subWF from different steps. These steps have different security settings (executors)

I need to set security setting the same as for a step in main WF from which I call subWF

I tried to do execution step in subWF (1st one) with command ksc_store CALLER = LAST_UPDATED_BY, LAST_UPDATED_BY_USERNAMER to store "caller" in hiden field of Request Type

On the 2nd step of subWF I set Secuty using User Token [REQ.P.CALLER]-User ID (I tried different combination [REQ.P/VP.CALLER] and User ID/Name settings.
No results - nobody can act on this step

Waiting for you help.
Thnx in advance
4 REPLIES
Alexander (Sua)
Regular Collector

Re: Set Security for 1st subworkflow step

Could anybody give me any idea?
Jim Esler
Honored Contributor

Re: Set Security for 1st subworkflow step

I can't tell the exact form of the command that you are using but, assuming your field is in the header, the following should work:

ksc_store req.p.caller="[REQ.LAST_UPDATED_BY]","[REQ.LAST_UPDATED_BY_USERNAME]"
Alexander (Sua)
Regular Collector

Re: Set Security for 1st subworkflow step

Thanks.
I did almost like this
ksc_store CALLER = [REQ.LAST_UPDATED_BY]
Befor I ddi a mistake when I tied to use this token I should type "REQD" instead of "REQ" because I created this filed in Request Type, not in Request Type Header
Alexander (Sua)
Regular Collector

Re: Set Security for 1st subworkflow step

See above
//Add this to "OnDomLoad" event