A method for presetting contacts of an instant messaging account according to a messaging relationship between roles, comprising the followings steps:
- creating roles in a system, wherein said role is an independent individual not a group/a class, and during the same period, one role can only be related to a unique user, while one user is related to one or more roles;
- one user corresponds to one employee, and one employee corresponds to one user;
- establishing a relation between a user/an employee and an instant messaging account, wherein one user/employee is related to one instant messaging account, and one instant messaging account is related to one user/employee;
- and
- setting a messaging relationship between a messaging role and a messaged role according to the work content of the roles in the system, wherein said messaging role and said messaged role are both the roles in the system;
- and setting one or more messaged roles for each messaging role for which a messaging relationship needs to be set, so that a messaging relationship is established between an instant messaging account related to a user who is related to the messaging role or an employee corresponding to the user and an instant messaging account related to a user who is related to the messaged role or an employee corresponding to the user, and the instant messaging account related to the user who is related to the messaged role or the employee corresponding to the user is used as a contact of the instant messaging account related to the user who is related to the messaging role or the employee corresponding to the user.