Forum Discussion
Hi neel_psl,
You can delete users permanently by using the 'Close Account'option in the Admin -> Users -> Edit Users. Search for the user and click 'Close Account'. This feature needs to be enabled by raising a support ticket with Lithium, if it is not already enabled.
You can then create users using the 'Create User'option in Admin or via API - https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&leaf-id=Community.users.add#
Is there any API to close/delete group of users all together at once??
- srujanayeruvaka8 years agoChampion
neel_psl - There is no API to close/delete accounts. You can do it one at a time via the Admin.
- TariqHussain8 years agoBoss
neel_psl - Why do you want to delete a user, if you want to create the same user again? What exactly you want to change while recreating it?
- vivek8 years agoAce
Hi TariqHussain,
We have done dry run for testing successful migration of users on stage. Now we want to delete those users and again perform final migration of all the users on stage. We had older database dump earlier so anyways we would want to migrate all the users from the latest database dump now. That's the reason we want to delete all the migrated users and recreate them, as user with same username cannot be create in Lithium.
Thanks!
- TariqHussain8 years agoBoss
Open a ticket to lithium support they probably can delete those users. The other option is while migration,
Check if the username exists, If the user already exists on stage, update the details of exists users from the latest database. You can use below API's for update the user details.
If the user does not exist, create new users. Below are the API's to create new users.
Related Content
- 8 years ago
- 11 years ago