Is there any file or folder level permission available?

I am trying to integrate nextcloud in my application as a content library. I have all the set up but my problem is with the file permission.
I want to share a file which may within a folder. Folder is shared with groupA(suppose). but from groupA some users dont have the permission of some files. I need to restrict them. Is there any way there???