Hi there,
You can use User Groups and assign different folders different permissions assigned to different user groups
This thread might also help you out with the steps
https://learn.microsoft.com/en-us/answers/questions/132221/allow-user-to-access-and-see-only-certain-subfolde.html
----------------------------------------------------------------------------------------------------------------------------
If the reply is helpful, please Upvote and Accept it as an answer