secrhng ang group according to user