Can anyone help me to create a search bar for my directory app?

I created a directory app for my colleagues.

I want create a search bar where user can search other user by their workplace or name. But I cant figure it out how can I be able to do that. Could anyone please help me?