An electronic device comprising: a communication unit which communicates with another electronic device; a storage unit which stores setting information of security for communication corresponding to each application; an execution control unit which starts up and executes one application among a plurality of applications used to communicate with the other electronic device and recruit a user for participating in a community, where a community system is configured to include the electronic device and the other electronic device; and a security control unit which reads the setting information corresponding to the application which has been started up from the storage unit and controls security for communication using the communication unit based on the read setting information when the execution control unit starts up the application, wherein the electronic device is characterized in that the security control unit returns a setting of security for the communication to a setting before the application is started up when a predetermined condition is satisfied after the application is started up, when a message for participation in the community is received from the other electronic device, a user of the other electronic device is set as the participant of the community, personal information of the user participating in the community and information on the other electronic device are written to the storage unit of the electronic device, the setting of security returned to the setting before the application is started up is a security setting corresponding to each application, when the predetermined condition is satisfied, the personal information and the information on the other electronic device are deleted from the storage unit of the electronic device, and the predetermined condition comprises a condition in which the number of users who participate in the community system reaches a predetermined number; and a condition in which access from the other electronic device to data other than data for recruitment is detected. a communication unit which communicates with another electronic device; a storage unit which stores setting information of security for communication corresponding to each application; an execution control unit which starts up and executes one application among a plurality of applications used to communicate with the other electronic device and recruit a user for participating in a community, where a community system is configured to include the electronic device and the other electronic device; and a security control unit which reads the setting information corresponding to the application which has been started up from the storage unit and controls security for communication using the communication unit based on the read setting information when the execution control unit starts up the application, wherein the electronic device is characterized in that the security control unit returns a setting of security for the communication to a setting before the application is started up when a predetermined condition is satisfied after the application is started up, when a message for participation in the community is received from the other electronic device, a user of the other electronic device is set as the participant of the community, personal information of the user participating in the community and information on the other electronic device are written to the storage unit of the electronic device, the setting of security returned to the setting before the application is started up is a security setting corresponding to each application, when the predetermined condition is satisfied, the personal information and the information on the other electronic device are deleted from the storage unit of the electronic device, and the predetermined condition comprises a condition in which the number of users who participate in the community system reaches a predetermined number; and a condition in which access from the other electronic device to data other than data for recruitment is detected.