A non-transitory computer-readable recording medium storing computer-readable instructions for a printer,
- wherein the printer comprises a memory storing print history information, first authentication information, disclosure restriction information, and disclosure user information,
- wherein the print history information is stored in the memory by execution of a print according to Internet Printing Protocol (IPP) at the printer, and includes restricted history information and non-restricted history information, the restricted history information being information of which disclosure to a non-disclosure-targeted user is restricted, and the non-restricted history information being information of which disclosure to the non-disclosure-targeted user is not restricted,
- the disclosure restriction information is for the printer to identify the restricted history information and the non-restricted history information in the print history information, and
- the disclosure user information indicates a disclosure-targeted user of the restricted history information,
- wherein the computer-readable instructions, when executed by a processor of the printer, cause the printer to:
- receive a history request according to the IPP from a first external device, the history request being for requesting sending of the print history information;
- execute an authentication process,
- wherein the authentication process includes:
- in a case where the history request is received from the first external device, sending an input information request to the first external device, the input information request being for requesting sending of input information;
- in a case where the input information request is sent to the first external device, receiving first input information including first user identification information inputted to the first external device and second authentication information inputted to the first external device from the first external device;
- and
- in a case where the first input information is received from the first external device, determining whether the first authentication information in the memory matches the second authentication information included in the first input information;
- in the case where the first input information is received from the first external device, determine whether a specific user identified by the first user identification information included in the first input information is the disclosure-targeted user indicated by the disclosure user information;
- in a case where it is determined that the first authentication information matches the second authentication information and it is determined that the specific user is the disclosure-targeted user, send according to the IPP the print history information including the restricted history information and the non-restricted history information to the first external device as a response to the history request, wherein in a case where it is determined that the first authentication information does not match the second authentication information, the print history information is not sent;
- and
- in a case where it is determined that the first authentication information matches the second authentication information and it is determined that the specific user is not the disclosure-targeted user, send according to the IPP the non-restricted history information to the first external device as a response to the history request.