Hi,
We currently have 2 directories under confluence (Confluence-Internal and Work-Internal). We are using Oracle db.
We plan to move the Work-Internal Directory up and make it the primary one. Since there are common users in both directories, we need to transfer the groups the users are a part of from the Confluence-Internal to the Work-Internal Directory.
Is there any way we could achieve this for Oracle db?
Thanks!
You can user userAccessor API
Group gp = userAccessor.getGroup("confluence-users");
User addUser = userAccessor.getUser(employeeString);
if(null != addUser)
{
userAccessor.addMembership(gp, addUser);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks :)
Do we need to specify any admin access for to script to run successfully?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes.
User adminuser = userAccessor.getUser("xxxxx");//any admin user from confluence-admin
AuthenticatedUserThreadLocal.setUser(adminuser);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I want to add people to groups. I need to add 1100+ people a particular group, and I am hoping there is an api which will make my task easier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you want to add/remove people from groups?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are there any Confluence apis that we could use to change a user's group?
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.