cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically create space

cm_alfresco
Champ in-the-making
Champ in-the-making
Is it possible to create spaces and subsequent rights to the space dynamically?

I am adding content to Alfresco through the Ascent Capture release and based on the filename (user id) I want to create a space (first check if the space already exists) and set the rights so that the a user with the user-id is the only one who can access this space (apart from admin of course)?

There are 3000+ users so creating these spaces manually would be quite a task!

I can imagine that making some sort of LDAP/AD connection would make sense.

Thanks!
2 REPLIES 2

rivarola
Champ on-the-rise
Champ on-the-rise
Hello,

You can create a rule running a custom script (see the JavaScript API wiki page : http://wiki.alfresco.com/wiki/JavaScript_API). This script runs on the server and you can dynamically create a user or a space.
Note that Alfresco can automatically create a Home folder for each new user, with adequate permissions.

lacrymosa
Champ in-the-making
Champ in-the-making
Is it possible to create subspace in the userhome automaticaly
And give an other user, say, a manager, the rights to add content.

|-Users Home
—|-Employee1
——|-Documents
—|-Employee2
——|-Documents

In this case the manager would be able to add content to the Documents spaces form both employees, without setting rules manually.