I am using google analytics to tract the data and "userid" tracking is enabled on the site.
ga('set', 'userId', '<user_id>');
I am using Google Analytics API to build custom reports and show it in the application. We can see that the information is being tracked by google analytics and is visible in "user explorer" section.
I was wondering is there a way to get sessions, page visits of a user by passing the userId in a query.

ga:dimensionXX- Matt