Get Project for that users via calling API

I want to do something like this …calling gitlab api and pulling for project for that user

…api/v3/projects/bob

I dont want to do since the id can be anything i will never know as its get generated
api/v3/projects/:id/users?username=test

Please help me out here…TQ