Problem:

The user gets the following error after running the DOMGETNM1 API call to retrieve names from the Domino NAMES.NSF file using the RJS Domino API. 
30 02/19/02 14:34:40 QCADRV QSYS 052B DOMGETNM1C RJSDOMAPI 006D
Message . . . . : Not authorized to library RJSDOMAPI.
Recovery . . . : Obtain authority from the security officer or the owner of
the library.
CPF0001 Escape 30 02/19/02 14:34:40 QCADRV QSYS 0548 DOMGETNM1C RJSDOMAPI 006D
Message . . . . : Error found on RJSDOMAPI command.
Cause . . . . . : The system detected errors in the command. Recovery . . .
: See the previously listed messages in the job log. Correct the errors
and then try the command again. *N instead of a command name means that the
name had not been determined before the error was found.
CPF9898 Escape 40 02/19/02 14:34:40 DOMGETNM1C RJSDOMAPI 00F2 QUOCMD QSYS 01FA
Message . . . . : Errors occurred while retrieving info from NAMES.NSF.
Cause . . . . . : This message is used by application programs as a general
escape message.

Solution:

Ideally you should give user QNOTES *ALLOBJ authority and then it can access the RJSDOMAPI library.
 
-or-
 
Alternatively you can run the following commands to give QNOTES access to the RJSDOMAPI library and objects:
 
GRTOBJAUT OBJ(QSYS/RJSDOMAPI) OBJTYPE(*LIB) USER(QNOTES) AUT(*ALL)    
GRTOBJAUT OBJ(RJSDOMAPI/*ALL) OBJTYPE(*ALL) USER(QNOTES) AUT(*ALL)

Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: December 10, 2016