Script to manage groups and permissions.