Solved
How can i delete a user assigned to various groups when he logged in and add him to respective group assigned from an external system dynamically?
I need help on deleting all the user assigned group programmatically and assign him to new group set on logging In.

