add the user_id as metadata to the registered query