To hide which role a user is assigned to, click the Hidden assignments check box before assigning the role to the user.
Note: Role assignments are not hidden from admins or teachers i.e. users with the viewhiddenassigns capability.