cancel
Showing results for 
Search instead for 
Did you mean: 

Programming permissions

jonathanscorner
Champ in-the-making
Champ in-the-making
I would be interested in being able to create directories and assign permissions.

Is there a way to tell Alfresco, "For each person X on list Y, create a directory which X has Consumer access to, and fixed user Z also has Coordinator access."?

What should I be reading for programmatic access to Alfresco, or is that not really available without a lot of hacking?
6 REPLIES 6

jonathanscorner
Champ in-the-making
Champ in-the-making
I am looking through the JavaScript API, and wanted to ask–is JavaScript a good way to do it? Does the JavaScript API support what it appears to support in terms of the folder creation and permissioning described above?

davidc
Star Contributor
Star Contributor
Yes, the javascript api provides everything you need.

jonathanscorner
Champ in-the-making
Champ in-the-making
Thanks!

jonathanscorner
Champ in-the-making
Champ in-the-making
How can I get a list of all users (Person objects or usernames), or get comparable functionality? I see stuff in the People API about how to look up user(s) who meet a specific criterion (i.e. have a specific username or are part of a group), but I don't see how to request all users.

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

The authority service provides this information.

Andy

kevinr
Star Contributor
Star Contributor
There is no JavaScript API to get all users in the System (that might be quite slow if you have a lot…) please raise an enhancement request in JIRA.

Kevin