preliminary code to restrict profiles available to users depending on their groups