logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
narsimhak  
#1 Posted : Friday, January 18, 2019 10:42:14 AM(UTC)
Rank: Administration
narsimhak
Groups: Registered, Administrators

Posts: 7
Location: Hyderabad
  1. If we need to move a single user from one organization to other, we can do it from the user interface

    1. Go to Desktop then to Users

    2. From top menu click on Manage

    3. In this screen you can find Add Existing Users 

    4. from the dropdown select the user and click on Add button they will automatically be added to this organization.

      ​​​​​​​

  2. But if we want to ADD bulk users, then we can do it from the backend using some database queries

    Say we want to move these three users who are in the XXX organization (say group_id = 1)

    1. knr@abc.us
    2. kbpr@abc.us
    3. sg@abc.us

Use the SQL query below to ADD all these three users to the YYY organization (Say group_id = 2),

Code:
INSERT INTO usergroups
(group_id, is_admin, user_id)
VALUES
SELECT 2, 'N', user_id FROM users 
WHERE email_address 
IN ('knr@abc.us', 'kbpr@abc.us', 'sg@abc.us')

HELP: Use below qeury to find group_id's

Code:
select * from groups

Edited by user Friday, January 18, 2019 10:48:35 AM(UTC)  | Reason: Not specified

Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.