Search code examples
javaspringalfrescocmisopencmis

Alfresco openCMIS connect to home folder


In Alfresco I have this structure /Company Home/A and /Company Home/B some users home folders are set to A and others set to B.

Problem: I see that in order to connect from my application to Alfresco though OpenCMIS, I need connect there using the repositoryId, aka MainRepository(Company home), so I need give all users from A and B permissions to connect to there. So that´s means that if a users from A connect to Alfresco, they can read documents from B, and the other way around.

I was expecting using OpenCMIS can connect directly to my home folder.

Any idea or suggestion about my issue?.

Thanks


Solution

  • Promoting a comment to an answer:

    What you need to do is:

    1. Give all users Read (Consumer) access to /Company Home
    2. Give only B users access to /Company Home/B and remove Inherit Permissions to stop A users having access
    3. Give only A users access to /Company Home/A and remove Inherit Permissions to stop B users having access

    To do those changes, use the Repository Browser to be able to play with Company Home, then use Manage Permissions. Clock on Inherit Permissions and go through a prompt to remove them, then add in the appropriate groups. It should look roughly like

    Before

    After