Configuring groups and policies