Setting the user group functionality