Bulk move users from one group to another in XI 3.1

Hi all,
I have a group that contains approximately 20,000 users. I now need to move around 7,500 of these users into a different group.
How can I do this programatically in bulk as I don't want to go through and manually change the groups of 7,500 users?
Thanks,
Chris

Hi Christian,
Assuming you would need to move users from one group to another and remove them from the previous group, you could use the attached java code.
To run the code, you would need to save it as .jsp file and paste it inside AdminTools application context.
The pre-requisite to run this code is to create a Text file with all the 7500 user names in it. The text file should contain one user per line
(example:
User1
User2
User3
You can get this information from query builder by running the below query
Select top 20000 si_name from ci_systemobjects where si_kind='user'
Initially do it for 2-3 users to text the results.
You would need to edit the jsp and modify these three lines
1.
                * Assign user to a group
               //Query for the group ID
               boQuery = "Select SI_ID From CI_SYSTEMOBJECTS Where SI_KIND='UserGroup' And SI_Name='UserGroup name'";
Above in SI_NAME, you would need to provide the usergroup name you want your users to be added to.
2.
if (boUserInfoObject.getGroups().remove(Group Id from which it has to be removed)) {
                        out.print("User removed from group successfully. ");
Above you would need to provide the id of the group you want the users to be removed from(i.e the current group from where you want them to be moved).
3.
* Path to file containing User names.
final String USER_FILE_PATH = "<Path of txt file from which list of users will be imported>";
Above you need to specify the path of the text file which contains all the user names.
Incase you require further assistance on SDKs, raise your concerns in the below space
http://scn.sap.com/community/bi-platform/java-sdk
Thanks,
Prithvi

Similar Messages

  • Moving users from One Group to another

    Hi Guys,
    I am looking for a script which will allow me to move users from One ADGroup to another ADGroup. I have checked ther scripts which are currently present. However, none of them if fixing my issue.
    Details:
    I have Different locations and users moves from one location to another location and same thing happens as they gets moved from one Tower to another Tower (Like From TOWER A to Tower B). Also users gets promoted and most of the time they are in bulk.We also
    have 2 domains one is parent and another is child domain.
    So, I hope above information is making sense and also I Completely new to PS so after going to lot of scripts i asking for help on this. I hope I can gets this sorted out as soon as possible as my work is piling up.

    You are asking a lot of questions about AD.  Do you know how to do this in AD with D tools?
    There is no magic way to guess at what you need. I recommend that you start by learning AD and PowerShell.  There are good resources here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

  • How do I move contacts from one group to another?

    I entered several contacts in address book.  How do I control which group they are assigned to at the time of entry?  The ones I added showed up in my office contacts in Outlook instead of in Hotmail/iCloud.
    Is it possible to move them from one group to another once entered?

    Do the contacts that are not in iCloud belong to an external account such as Gmail, Yahoo or an Exchange account?  Or, do they belong to On My iPhone?

  • How can I move contact from one group to another?

    HOW CAN I MOVE A CONTACT FROM ONE GROUP TO ANOTHER GROUP?

    You usually make ​​contact groups via a computer (Mac or PC). If you use a mac and sync. via iCloud, you can go into Contacs.app and organize your contacts as you wish. Then (if) you sync with iCloud the groups you've changed or created will be displayed on your iPhone and (or) iPad.
    Hope this helped you.

  • Move user from one OU to another

    How do I move a user from one OU to another in Active Directory

    Moving a user is just a rename operation.
    In LDAP terminology it is a modification of the relative distinguished name; mod_rdn.
    Assuming you have all the other JNDI stuff working, the following snippet is all you need:String oldUserName = "CN=Albert Einstein,OU=Research,DC=antipodes,DC=com";
    String newUserName = "CN=Albert Einstein,OU=Sales,DC=antipodes,DC=com";
    ctx.rename(oldUserName,newUserName);Good luck

  • How to Move users from one OU to another

    I need move user for one OU another, but show error
    this my script:
    Import-Module activedirectory
    $Users = Import-Csv -Delimiter ";" -Path "D:\Joan\teste.txt"
    foreach ($User in $Users)
        $DisplayName = $User.Usuarios
        $TempUser = Get-ADUser -Filter { DisplayName -like $DisplayName }
    Move-ADObject -Identity $DisplayName -TargetPath "OU=teste,DC=teste,DC=br"
    This error:
    ove-ADObject : Não é possível localizar um objeto com identidade: 'ALCIDES ALVES MACHADO                                                                      
    ' em: 'DC=teste,DC=br'.
    Em linha:8 caractere:14
    + Move-ADObject <<<<  -Identity $DisplayName -TargetPath "OU=teste,DC=teste,DC=br"
        + CategoryInfo          : ObjectNotFound: (ALCIDES ALVES M...               :ADObject) [Move-ADObject], ADIdentityNotFoundException
        + FullyQualifiedErrorId : Não é possível localizar um objeto com identidade: 'ALCIDES ALVES MACHADO                                                                      
    ' em: 'DC=teste,DC=br'.,Microsoft.ActiveDirectory.M
       anagement.Commands.MoveADObject

    I try, but... :/
    Move-ADObject : Não é possível validar o argumento no parâmetro 'Identity'. O argumento é nulo. Forneça um argumento que não seja nulo e tente o comando novamente.
    Em linha:8 caractere:25
    +  Move-ADObject -Identity <<<<  $TempUser.distinguishedname -TargetPath "OU=teste,DC=teste,DC=br"
        + CategoryInfo          : InvalidData: (:) [Move-ADObject], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ActiveDirectory.Management.Commands.MoveADObject

  • On iPhone move contact from one group to another

    Still don't see an app (or ability in native Contacts app on iPhone using ios5) to move a contact from All Contacts to another established group. Is this possible without syncing with my Addressbook program only MacBook?

    Email the contact to yourself (share contact).
    In the contacts app, make sure you are in the proper group.
    Import the contact. It should be added to the group you selected in the previous step.
    Now go check the contact is in the correct group, and if so, delete the one in the old group.

  • How do you safely and quickly move users from one mailstore to another?

    In our current NMS configuration we have our clients spread across 4 mailstores (mstore0-mstore3). The current stores are filling up and we need to move some clients from each existing store to a new one (mstore4). MoveUser will move the users but seems very slow given the number of clients and messages will have to move. Is there any better method and as important has anyone else done anything similar and would share experiences?

    Hi,
    MoveUser is the safe and better way for moving the user.
    Please mention from which version you are migrating users from different store.
    hope the following link will help you
    http://docs.iplanet.com/docs/manuals/messaging/ims52/mg/changes.htm#20138

  • How to move user from one partition to another partition

    i install ims 5.2 on solaris 8, the messagestore is default ..../partition/primary, now i add a new disk, and add a partition secondary through startconsole,when i want to move b user to the new parition , i get a error. anyone can help me, thank a lot
    $ ./mboxutil -r user/b/inbox user/b/inbox secondary
    System I/O error. Administrator, check server log for details.
    $

    hi,jay_plesset
    i downloaded the 5.2p1 and installed it, there are some error.
    Running Post-install procedures.
    /usr/iplanet/server5/msg-ultra1/imsimta chbuild
    -- line #3 of language code fileno country name specified --
    /usr/iplanet/server5/msg-ultra1/imsimta cnbuild
    07:27:11.93: Error in mm_init -- error initializing ch_ facility: no country nam
    -- line #3 of language code file
    /usr/iplanet/server5/msg-ultra1/imsimta cleandb
    /usr/iplanet/server5/msg-ultra1/imsimta version
    SunOS ultra1 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-1
    iPlanet Messaging Server 5.2 (built Feb 21 2002)
    libimta.so 5.2 (built 15:07:23, Feb 21 2002)
    New Installed Version is 5.2
    WARNING: Newly Installed revision string 0 does not match, it should be 1.09
    2.what's your mean,"Moving a user's partition by manually moving files, will not update the LDAP database. You MUST do this manually, "
    i mv the user,and run reconstruct -m, everything seems ok.

  • How do I move a contact or contacts from one group to another group?

    How do I move contacts from one group to another group on my iPhone?

    Hi ,
    In exchange you cannot have the same email address for multiple recipients .
    First and Best way is  to remove the email address from the old user account and add the same smtp address to the new user who is going to take his place.
    Second option would be forwarding all the emails from old user account to new user account when an email was triggered to the email address ([email protected]) .on this case there is no need to remove or delete the email address from the old user account
    and also email address ([email protected]) will still reside on the old user account .
    If i am at your place i will choose the first option and i agree with DJ
    Grijalva
    Please reply me if you have any queries .
    Regards
    S.Nithyanandham
    Thanks S.Nithyanandham

  • How do I move a contact from one group to another?

    On my device, or in iCloud on the web, how do I move a contact from one group to another.  This should be as easy as it is with calender items, but the only solution I've found is to change your default contact group, and email the contact to yourself.  Then tap the contact, and add it to your contact list.  You can then delete the original.  Is there an easier way???

    Hi rjwrjw11,
    Thanks for visiting Apple Support Communities.
    If you want a song to be listed under a different album in iTunes, you can edit the song information:
    Fixing Incorrect Song or Album Listings in iTunes
    http://support.apple.com/kb/TA24677
    Editing Track Information in iTunes
    To view and edit a song or video's info in iTunes:
    Click once on the track title to select it
    From the File menu, choose Get Info
    Click the Info tab
    Best,
    Jeremy

  • How can I move particular users from one client to another client

    Hi, I am trying to find a way to move few or many user from one client to another. Is there a transaction available or program to move them. e.g. there is a SCC1 available to move transport only from one client to another without going through TMS.
    Is there any trick available ?
    thnx in advance

    closing this one. thnx

  • In contacts app how can I move a contact from one group to another group?

    I find I cannot move a contact from one group to another group. If I delete a contact from one group I delete that contact from my total contact population. I did not have this problem in earlier IOS versions. Can anyone help me?

    Thanks SO much, Barney.  How embarrassing, I could have sworn that I tried that first.
    I will definitely get them all moved over before I delete that account and I've already gone in & changed my preferences.  Several years ago, my husband I decided to share one calendar and one contacts list, using his mobile me account and it's been great for us.  I'm particularly thrilled to no longer serve as a human rolodex and I guess that I paniced a bit when I thought there might be a problem with our system.  I'm still confused where that "On my mac" account came from on the first place.  Do you suppose that was an automatic thing that came with the Mountain Lion upgrade?
    thanks again!

  • Trying to move a users from one database to another gives error

    When I try moving a user from one database to another I get an error, but one some PC's installed with EMC, gives no problems. So what could the the issue here, I tried googling, but came out without any solution. Exchange 2010 sp3, EMC on Windows 7 pc.
    The error message is:
    The move request for user is invalid. The user's Active Directory identity doesn't match the mailbox identity in the
    move request. It was running command "Get-MoveRequestStatistics -identity.....

    Is this 1 specific mailbox or any mailbox? Things to consider:
    Make sure that your Exchange management tools are running the same build as your Exchange server (2010 SP3 RUx). 
    Try using the Exchange Management Shell and typing Set-ADServerSettings -ViewEntireForest $True
    You might need to use the RUN AS ADMINISTRATOR when open Exchange tools
    Try running Clean-MailboxDatabase against each DB -
    http://technet.microsoft.com/en-us/library/bb124076(v=exchg.141).aspx
    Review and then Remove old move requests
    Try mailbox repair request -
    http://technet.microsoft.com/en-us/library/ff625221(v=exchg.141).aspx

  • Moving Users from one server to another

    Is it possible to move my network users from one Xserve to another? I know this used to be possible to do with NetInfo, but I haven't heard of anything like this using Ldap.

    I used Open Directory Archive/Restore in Server Admin to carry over my ldap users through a reinstall. Their UIDs, groups, passwords, etc. all came across. The home directories were on a different volume and everything basically worked after the reinstall.

Maybe you are looking for

  • How can i install windows 8

    i have macbook pro retina 15 inch i cant install windows 8 or win 7 my mac when boot cd and restart mac and mac dont work please answer me i need help thanks

  • Can't Delete Graphic or Page in Pages '08

    I've got a document that is nothing more the a large jpeg on each page. On one page I can't delete the graphic OR the page. When I select the graphic and hit delete nothing happen. Can't even resize it. When I switch the graphic to Floating in the in

  • How do I watch Amazon Instant video on tv

    How do I watch Amazon Instant Video on my TV?

  • Approval Process in Collaboration Room

    Hi Everyone,      I have created collaboration room using room creation iView under Public Scope.I have assigned three users for this room are Manager, Employee1, Employee2. Here, Manager is approver. If Employee1 uploads or creates a file in the roo

  • Applications Slow and Unstable all of a Sudden?

    Hello    I recently re-formatted and re-installed Mac.  Everything was fine for the first day or two of using, however applications (as well as finder) are having some major problems now.   If I open iTunes, sometimes it will open instantly like norm