03-10-2011 08:33 AM
03-23-2011 04:33 AM
Échec de la création du groupe '02230003 Wrapped Exception (with status template): 02230382 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/groups/children.post.js': 02230381 Authorities of the type EVERYONE may not be added to other authorities'.
- Add group (the choice "EVERYONE" does not appear)03-23-2011 04:48 AM
03-23-2011 04:52 AM
Hi everybody,
I have the same issue … on Alfresco 3.4.b Community.
[…]
Can you confirm this behavior ?
03-23-2011 10:44 AM
// define the names of source and target group
var nameSourcegroup = 'EVERYONE';
var nameTargetgroup = 'ALLUSERS';
// get the source group *PROBLEM HERE*
var groupSource = people.getGroup('GROUP_' + nameSourcegroup);
if (groupSource) {
// get the members of the source group
var membersSourcegroup = people.getMembers(groupSource);
if (membersSourcegroup) {
// get the target group
var groupTarget = people.getGroup('GROUP_' + nameTargetgroup);
// if not existent, create the target group
if (!groupTarget) {
groupTarget = people.createGroup(nameTargetgroup);
};
if (groupTarget) {
// loop over all members of the source group and add them to the target group
for(var i = 0; i < membersSourcegroup.length; i++) {
people.addAuthority(groupTarget, membersSourcegroup[i]);
};
};
};
};
03-23-2011 10:56 AM
03-23-2011 11:11 AM
I think it would be far easier just to add EVERYONE to EMAIL_CONTRIBUTORS.That's just, what I want to do! But I cannot find a way even avoiding the UI.
03-25-2011 08:24 AM
// define the names target group
var nameTargetgroup = 'ALLUSERS';
// get the members of the source group
// var foundUsers = search.luceneSearch("QNAME:\"usr:user\"");
var foundUsers = search.luceneSearch("user://alfrescoUserStore", "QNAME:\"usr:user\"");
if (foundUsers.length) {
// get the target group
var groupTarget = people.getGroup('GROUP_' + nameTargetgroup);
// if not existent, create the target group
if (!groupTarget) {
groupTarget = people.createGroup(nameTargetgroup);
};
if (groupTarget) {
// loop over all found users from the lucene search and add them to the target group
for(var i = 0; i < foundUsers.length; i++) {
people.addAuthority(groupTarget, foundUsers[i]);
};
};
};
09-22-2011 07:57 PM
09-23-2011 03:43 AM
As an aside, I think the current share GUI incorrectly conflates the two concepts of "role" and "group". Alfresco really needs to rework this GUI so that the two concepts are clearly separated out.Have you got any specific areas where you find this confusing?
09-23-2011 07:25 AM
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.