We recently implemented LDAP and there is significant overlap between our users in the confluence internal directory and our active directory. While we're happy to make the 'switch' and lower the priority of the internal directory below the active directory, this will cause issues as our group names do not match exactly.
For example, we have a group in our internal directory called "staff" which contains all our staff members (as opposed to a group called "client", which contains just about everyone else) but in our active directory, this group is called "all-staff".
When we swap the order of the directories, the "staff" group (that we've applied to just about every space) that we set up will be useless as all our staff users will be in the "all-staff" group.
I have two questions, one of which I hope we can do:
Thanks
allo,
There is no pretty way to do this via the UI but I believe we could bulk change the permissiosn via the database. The following SQL would change all permission entries for the group 'staff' and make them for 'all-staff'. Please keep in mind, this would be for ALL permissions that were specific to the 'staff' group across the entire instance of Confluence. Furthermore, I have not tested this against antying other then a small local instance. With that in mind, I highly suggest trying this in a test environment first and be sure to create a backup of the DB first.
UPDATE SPACEPERMISSIONS SET PERMGROUPNAME='all-staff' where PERMGROUPNAME='staff';
Cheers,
Andrew
P.S make sure Confluence is off when making these changes.
Thanks! I'll try it out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Reading this question I found some imporvement requests which informs similiar request that are still under analysis:
https://jira.atlassian.com/browse/CONF-26594
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JIRA Improvement Request portal....where requests go to die.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi community,
Just in case. The one that worked for me was to copy the users from a sql query result and save it as a CSV file, then copy all the users from that CSV and add them to the group from JIRA using the normal procedure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You could also do it with the Power Scripts for Confluence add-on:
It is a free add-on. Here is the script you need:
string[] users = usersInGroups({
"remove group name"
});
for
(number i =
0
; i <
size(users)
; i = i +
1
) {
removeUserFromGroup(users[i], "remove group name");
addUserToGroup(users[i], "add group name");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.