SHo and edit profile take groups into account

Signed-off-by: Alan Gardner <alan@armoin.com>