Improved to choose only users or only groups, and confirm change