A method for presetting contacts of an instant messaging account according to a messaging relationship between roles, comprising the followings steps:
- creating a plurality of roles in a system, wherein each role of the plurality of roles is an independent individual which is not a group or a class, and during a same period, each role of the plurality of roles is configured to be related to a user only, and the user is configured to be related to one or more roles of the plurality of roles;
- wherein one user is configured to correspond to one employee, and one employee is configured to correspond to one user;
- establishing a relation between the user and an instant messaging account, wherein the user is configured to be related to the instant messaging account, and the instant messaging account is configured to be related to the user;
- and
- setting a messaging relationship between a messaging role and a messaged role according to work content of the plurality of roles in the system, wherein the messaging role and the messaged role are both the roles of the plurality of roles in the system, comprising setting one or more messaged roles for the 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 and an instant messaging account related to a user who is related to the messaged role of the one or more messaged roles, and the instant messaging account related to the user who is related to the messaged role is configured to be used as a contact of the instant messaging account related to the user who is related to the messaging role.