Grant acces to files of user in data/user/files

Hi. I need to list the files of a user from the path icloud/data/user/files from an application created with php. The goal is to create a read-only listing of all the files and folders of the contents of the folder in owncloud. How can I allow this or is there an owncloud app to list them without asking for permission or something? Tanks