A printing apparatus which is operable to perform printing of print data, to which a password is attached, according to an input of the password on the printing apparatus and to perform printing of print data stored in a print server according to performing an authentication operation for authenticating a user on the printing apparatus, comprising: first setting means configured to set validity or invalidity of a first function for printing, according to a user having been authenticated, print data associated with the authenticated user and stored in the print server; second setting means configured to set validity or invalidity of a second function for printing, according to a password attached to print data having been input by a user, the print data stored in the printing apparatus or the print server; third setting means configured to set to perform or not to perform exclusive control, wherein by the exclusive control invalidity of the second function is set in a case where the first function is set as valid; fourth setting means configured to set, as an operation in a case where the second function is set as invalid, whether to stop printing of said print data attached with the password or to print said print data attached with the password without waiting for the password to be input; instruction means configured to issue a print instruction for printing print data stored in the print server after performing the authentication operation; reception means configured to receive print data, determination means configured to determine whether a password is attached to said print data which is received; and printing control means which is configured, when the determination means determines that a password is attached to said print data, to when the exclusive control is set to be performed such that the second function is set as invalid by the exclusive control, control whether to stop printing of said print data or to print said print data without waiting for the password to be input according to the setting by the fourth setting means, when the exclusive control is set not to be performed and the second function is set as invalid by the second setting means, control whether to stop printing of said print data or to print said print data without waiting for the password to be input according to the setting by the fourth setting means, and when the exclusive control is set not to be performed and the second function is set as valid by the second setting means, control to generate image data based on said print data and store the image data. first setting means configured to set validity or invalidity of a first function for printing, according to a user having been authenticated, print data associated with the authenticated user and stored in the print server; second setting means configured to set validity or invalidity of a second function for printing, according to a password attached to print data having been input by a user, the print data stored in the printing apparatus or the print server; third setting means configured to set to perform or not to perform exclusive control, wherein by the exclusive control invalidity of the second function is set in a case where the first function is set as valid; fourth setting means configured to set, as an operation in a case where the second function is set as invalid, whether to stop printing of said print data attached with the password or to print said print data attached with the password without waiting for the password to be input; instruction means configured to issue a print instruction for printing print data stored in the print server after performing the authentication operation; reception means configured to receive print data, determination means configured to determine whether a password is attached to said print data which is received; and printing control means which is configured, when the determination means determines that a password is attached to said print data, to when the exclusive control is set to be performed such that the second function is set as invalid by the exclusive control, control whether to stop printing of said print data or to print said print data without waiting for the password to be input according to the setting by the fourth setting means, when the exclusive control is set not to be performed and the second function is set as invalid by the second setting means, control whether to stop printing of said print data or to print said print data without waiting for the password to be input according to the setting by the fourth setting means, and when the exclusive control is set not to be performed and the second function is set as valid by the second setting means, control to generate image data based on said print data and store the image data. when the exclusive control is set to be performed such that the second function is set as invalid by the exclusive control, control whether to stop printing of said print data or to print said print data without waiting for the password to be input according to the setting by the fourth setting means, when the exclusive control is set not to be performed and the second function is set as invalid by the second setting means, control whether to stop printing of said print data or to print said print data without waiting for the password to be input according to the setting by the fourth setting means, and when the exclusive control is set not to be performed and the second function is set as valid by the second setting means, control to generate image data based on said print data and store the image data.