An electronic device comprising: a display; a wireless communication circuit configured to communicate with a server; a memory configured to store instructions; and at least one processor electrically connected to the wireless communication circuit and the memory, wherein the at least one processor executes the stored instructions to: transmit , to the server, user information for registering a user account in the server; obtain hub identifiable information corresponding to a hub; transmit the hub identifiable information to the server, using the wireless communication circuit to add the hub identifiable information to the user account registered in the server; obtain device identifiable information corresponding to a plurality of Internet of Things, IoT, devices; output a specified message for displaying, on the display, the obtained device identifiable information; obtain a user input and, based thereon, select a part of the device identifiable information corresponding to at least one IoT device of the plurality of IoT-devices; transmit the selected part of the device identifiable information to the server to add the device identifiable information to the user account registered in the server; and enable the hub corresponding to the hub identifiable information added to the user account and the at least one IoT device corresponding to the at least part of the device identifiable information to be paired with each other. a display; a wireless communication circuit configured to communicate with a server; a memory configured to store instructions; and at least one processor electrically connected to the wireless communication circuit and the memory, wherein the at least one processor executes the stored instructions to: transmit , to the server, user information for registering a user account in the server; obtain hub identifiable information corresponding to a hub; transmit the hub identifiable information to the server, using the wireless communication circuit to add the hub identifiable information to the user account registered in the server; obtain device identifiable information corresponding to a plurality of Internet of Things, IoT, devices; output a specified message for displaying, on the display, the obtained device identifiable information; obtain a user input and, based thereon, select a part of the device identifiable information corresponding to at least one IoT device of the plurality of IoT-devices; transmit the selected part of the device identifiable information to the server to add the device identifiable information to the user account registered in the server; and enable the hub corresponding to the hub identifiable information added to the user account and the at least one IoT device corresponding to the at least part of the device identifiable information to be paired with each other. transmit , to the server, user information for registering a user account in the server; obtain hub identifiable information corresponding to a hub; transmit the hub identifiable information to the server, using the wireless communication circuit to add the hub identifiable information to the user account registered in the server; obtain device identifiable information corresponding to a plurality of Internet of Things, IoT, devices; output a specified message for displaying, on the display, the obtained device identifiable information; obtain a user input and, based thereon, select a part of the device identifiable information corresponding to at least one IoT device of the plurality of IoT-devices; transmit the selected part of the device identifiable information to the server to add the device identifiable information to the user account registered in the server; and enable the hub corresponding to the hub identifiable information added to the user account and the at least one IoT device corresponding to the at least part of the device identifiable information to be paired with each other. <EOS>