Once you have your UserID, you can set a persistent global variable in the scripting layer. This variable will be available within any other event handler you may need:
Code:
reportContext.setPersistentGlobalVariable(name, value);
You can also directly set the value of the report parameter in a script. this will allow you to bind the value into a query using the data set editor (take care when you do this assignment as your Data Set may have already been built:
Code:
params["param_name"].value = "something";
A last option would be to modify your query in the Data Set's initialize script. There you can check your persistent global variable and use the value to further tweak your query text.
Code:
this.queryText = this.queryText + " WHERE userid = " + reportContext.getPersistentGlobalVariable("userID");
Any of those approaches should work fine.
Good Luck!!