Modified promises

-Modified how promises where used to modify the available and assigned
groups when user added to groups.