How to group transcations by user?

In sentry discover, if a filter “event.type:transaction http.url:*api/foo/bar” is added, it will filter all transactions related to this API.

When sentry_pii is enabled, all transactions also have user information. Now is it possible to group the above transactions by a user so that number of transactions per user can be calculated?