Behaviour open file

how to make a behaviour who can open the document is the one who uploaded and some people/email?