Can we filter the user based on user id?

i am using this syntax but not working please help

userId=z8r3d895f9o

https://website**.matomo.cloud/?module=API&method=Live.getVisitorProfile&idSite=1&userId=z8r3d895f9o&filter_limit=5&period=day&date=yesterday&format=JSON&token_auth=2b1***

@melbao can you help with this?

its possible with segments:

Visitors → User ID → Is → …

Thanks @melbao your reply was really helpful

I needed this in API call so it worked this way… using segments

Setting the segment in API call worked:

segment=userId==z8r3d895f9o

https://rev***.matomo.cloud/?module=API&method=Live.getVisitorProfile&idSite=1&period=day&date=yesterday&format=JSON&token_auth=2b14***&segment=userId==z8r3d895f9o