Forum breadcrumbs - You are here:OfficeClip ForumsGeneral Discussion: Developer ResourcesCustom CodingHow to add bulk users from one or …
How to add bulk users from one organization to other?
Deepa Kapoor@deepa
190 Posts
#1 · November 28, 2025, 1:48 am
Quote from Deepa Kapoor on November 28, 2025, 1:48 am
- If we need to move a single user from one organization to other, we can do it from the user interface
- Go to Desktop then to Users
- From top menu click on Manage
- In this screen you can find Add Existing Users
- from the dropdown select the user and click on Add button they will automatically be added to this organization.
- But if we want to ADD bulk users, then we can do it from the backend using some database queriesSay we want to move these three users who are in the XXX organization (say group_id = 1)
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 query to find group_id's
Code:
select * from groups
- If we need to move a single user from one organization to other, we can do it from the user interface
- Go to Desktop then to Users
- From top menu click on Manage
- In this screen you can find Add Existing Users
- from the dropdown select the user and click on Add button they will automatically be added to this organization.
- But if we want to ADD bulk users, then we can do it from the backend using some database queriesSay we want to move these three users who are in the XXX organization (say group_id = 1)
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 query to find group_id's
Code:
select * from groups
Click for thumbs down.0Click for thumbs up.0
Last edited on November 28, 2025, 1:49 am by Deepa Kapoor
