1. An electronic apparatus having an authentication function being capable of limiting use for each function, comprising: a function processing unit configured to execute functions that the electronic apparatus has; a determination unit configured to, upon reception of an execution instruction to execute a function from a user, determine whether the function needs data that is set on a user-by-user basis, wherein the function needing the data that is set on a user-by-user basis is a function for displaying an operation screen that is unique to each user; and a control unit configured to perform control so as to, in a case where the determination unit determines that the function needs the data, determine whether the user who issued the execution instruction has been authenticated by the authentication function, and in a case of determining that the user has been authenticated, give data that is set for the authenticated user to the function processing unit for executing the instructed function, and cause the instructed function to be executed, and perform control so as to, in a case where the user who issued the execution instruction has not been subjected to authentication, cause the authentication function to perform authentication on the user, and in a case where the user is authenticated by the authentication function, give the data that is set for the authenticated user to the function processing unit for executing the instructed function, and cause the instructed function to be executed.