cancel
Showing results for 
Search instead for 
Did you mean: 

Assign users to a site

jdunhin
Champ in-the-making
Champ in-the-making
I have 360 users on Alfresco. I uploaded them via the bulk importer. But I want to assign them to a group. How can I do this once for all the users.

Thank you
4 REPLIES 4

jpotts
World-Class Innovator
World-Class Innovator
If you want to add users to a group in bulk, you can use this JavaScript:
var group = groups.getGroup("someGroup");
group.addAuthority("tuser2");

However, if you want to invite users to a site in bulk, you might take a look at the Site Service:
http://wiki.alfresco.com/wiki/4.0_JavaScript_Services_API#Site_service

If you are going to be doing stuff like this more than once, I recommend Florian Maul's JavaScript Console add-on.

Jeff

samnaction
Champ in-the-making
Champ in-the-making
Sorry I still dont find the answer in http://wiki.alfresco.com/wiki/4.0_JavaScript_Services_API#Site_service can you explain?

mrogers
Star Contributor
Star Contributor
It's nothing to do with the site service.    But you can add your users to a group and then add that group into one of the sites for a group.

samnaction
Champ in-the-making
Champ in-the-making
I dont want to add them straightly but invite every users, and if user is interested he can join
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.