cancel
Showing results for 
Search instead for 
Did you mean: 

Permissions to folder created via Bootstrap

harshad
Champ in-the-making
Champ in-the-making
I want to create a unique folder structure at boot strap. I also want to create some groups by default and assign permissions to those groups for the folder structure so created.

Using sample example, software_engineering_project.xml I could create folder structure (a bunch of spaces).  How can I create the groups I need during boot strap and assign them permissions to the above created folders, by specifying them in a configuration file or programatically?



Thanks,
4 REPLIES 4

andy
Champ on-the-rise
Champ on-the-rise
Hi

Groups and users are just nodes - they are in another store.
we already bootstrap some users, you could add groups.

Regards

Andy

steve
Champ in-the-making
Champ in-the-making
Hi,

This file contains an example of how to load users and spaces, and assign those spaces to users as their home space, at bootstrap.

Extract this file to your extension directory.

http://hosted3.alfresco.com/alfresco/download/attach/workspace/SpacesStore/567348f1-ebd8-11da-9e76-9...

Steve

pcuvecle
Champ in-the-making
Champ in-the-making
Hello,

I'm just looking at the bootstrap process and I was wondering how to create groups at this stage. In fact I can't figure out what is the node type for groups. I guess the groups should be defined in the alfrescoAuthorityStore.xml in
<sys:container view:childName="${alfresco_user_store.authorities_container.childname}">
    </sys:container>
I've looked in the DB to see the QName for the groups ({http://www.alfresco.org/model/user/1.0}authorityContainer) but it didn't help me very much

Could you confirm this and tell me what is the node type for the groups ?

Thanks for your help

andy
Champ on-the-rise
Champ on-the-rise
Hi

The node type for groups is usr:authorityContainer in usrModel.xml

Regards

Andy