cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically join new (authenticated) users to Public sites

cybertoast
Champ in-the-making
Champ in-the-making
I have a number of Public sites (with no membership moderation) which I automatically want to add users to, as they sign in to Alfresco (they're LDAP users who get set up when they sign up the first time). It seems like the only way to have users become members of a site is for them to click the Join button after searching for sites. Is there a way to automatically subscribe all authenticated users to Public sites? Is there a rule associated with sites that I should be looking at?

The reason for this request is so that users who are new to Alfresco don't have to think about what they have to do - when they sign in they'll have a dashlet with their sites, and they can just start working directly.
14 REPLIES 14

mikeh
Star Contributor
Star Contributor
The API is documented in this wiki article: http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#Connectors

But I guess you just have to "know" how to send JSON requests generally - we don't go into much detail.

Thanks,
Mike

jrbennett
Champ in-the-making
Champ in-the-making
Hi cybertoast.

I'm trying to do the same also. For Alfresco to get traction in our organisation, I need to make it really simple for new users to understand, so want to make sure they have got a site they can easily click on to get them started!

Seems like you have managed to do this now. Would it be possible to point me in the right direction of which file to place the code in, please?

Many thanks.

bbob
Champ in-the-making
Champ in-the-making
I have the same use case as cybertoast, "Basically I need to have a way to define a default group that authenticated users automatically become members of…" Has this capability been added since Nov 2009 (when cybertoast posted)? If not, then I have no problem implementing the script described here. However, I'm uncertain how to hook it into the authentication service so that it is executed when LDAP authenticates a [new] user.

bbob
Champ in-the-making
Champ in-the-making
There is a related post here: https://forums.alfresco.com/en/viewtopic.php?f=9&t=23298&p=141342#p141342. However, it does not contain an information on how to actually link the assign group behavior to the authentication mechanism.

sshvetsov
Champ in-the-making
Champ in-the-making
I'm also looking for a way to implement the same use case. i.e. ability to have new Alfresco users automatically join a Public site.