Get the userId from an action method.