Remove groups from users different groups from different users. File as this.
I have a txt file as
So when script run has to query the first name and remove just these groups next to the users.
So each user may have different groups for each. Any way of doing this.