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?
Narsimha Rao@narsimha
22 Posts
#1 · August 16, 2018, 6:48 pm
Quote from Narsimha Rao on August 16, 2018, 6:48 pm
- 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 ('[email protected]', '[email protected]', '[email protected]')
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 ('[email protected]', '[email protected]', '[email protected]')
HELP: Use below query to find group_id's
Code:
select * from groups
Click for thumbs down.0Click for thumbs up.0
