An electronic device is provided. The electronic device includes a memory, a battery, a speaker, a communication module, and at least one processor electrically connected to the memory, the battery, the speaker, and the communication module, wherein the at least one processor is configured to receive information indicating a wearing position from an external electronic device, and determine, based on the information indicating the wearing position of the external electronic device, whether to operate as a primary device among multiple electronic devices.