RegisterNewUser method generate a permision error

Hi

I’m facing a problem with the RegisterNewUser method. My script generate this error :

Agent ‘Test’ error: Notes error: You are not authorized to perform that operation ()

This error is strange because all works fine, the person document and his database are created. The only thing witch is not is the person document in the certlog database…

The agent is schedule and signed by the administration server id.

All works well if i execute this agent localy with my id.

Any ideas ?

Julien

A part of my script :

Call reg.RegisterNewUser(doc.Noteslname(0), _ ’ last name

	"c:" & "\" & "E" & doc.EmpNo_Notes(0) & ".id", _ ' file to be created

	doc.MailServer(0), _  ' mail server

	doc.Notesfname(0), _ ' first name

	"", _                              ' middle initial

	applPrf.GVACertIDPassword(0), _                   ' certifier password

	"", _                              ' location field

	"", _                              ' comment field

	"mail\E" & doc.EmpNo_Notes(0) & ".nsf", _                      ' mail file

	"", _                              ' forwarding domain

	usrPswddoc.Password(0), _                   ' user password

	NOTES_FULL_CLIENT)              ' user type

Subject: RegisterNewUser method generate a permision error

Hi Julien

I have two suggestions:

  1. check the ACL entry of the server id in the certlog. Is the server allowed to create new DBs … But I don’t think this is the problem.

  2. Sever IDs are recognised by Domino as being server IDs rather than just another user ID. They are not allowed to perform certain operations.

That is why product DBs are signed by some specially created ID sometimes referred to as the agent signer. This ID is created just like a user ID and is given all the top level rights. As far as Domino is concerned this is a person with all the rights to run agent and create documents etc.

I’d say sign the agent with someone’s ID who has total access to the system. If the agent works, then create a special agent signer ID for all future DBs that go into production.

Good luck

Bizhan

Subject: RE: RegisterNewUser method generate a permision error

Thank you Bizhan

I dont know why but if i put the directory administrtion server into the Full Administrator field on the mail server, all goes well…

So it’s now ok.