The User Activity API allows a Google Analytics property owner to retrieve all analytics measurement data associated with a single user. Do we have any API in Google Analytics 4 to do the same thing by sending userId or uid and get all logged events relater to that userid.
Doc link for Universal Analytics :- https://developers.google.com/analytics/devguides/reporting/core/v4/user-reporting