Set Permission Trigger - setting userid

Having a lot of issues here with passing a userid to the trigger via POST request method. Basically, I can see the variable being posted from one trigger however it's not being used by the next trigger.


My setup:



Trigger one fires

Event: Asset Accessed

some conditions - not important, just validation

Action: Call REST Resource - method POST

URL = http://www.domain.com/.?a=12345&securityKey=0qazn9fzw2dvg9C3a4bgCrb56DX8rP69&user=%globals_user_assetid%



Basically what happens here is that asset 12345 is accessed and is passed the security key and userid. I can see the variables being passed when I run a test.







Trigger two fires from the REST call above

Event: Asset Accessed

some conditions - not important, just validation

Action: Set Permission

Ignore Permissions: checked

Grant Write Root user

New parameter mapping: Userid/Groupid = POST variable 'user'





What should happen is that the userid being posted should override the Root user declaration, however it is not. The Root user is being granted permissions on asset 12345.



Is my understanding above incorrect? Or do I have something not configured correctly?



Thanks.

Aleks

Noone has any ideas??