Change anonymous login to newly created User

Hi all,

I have two databases first has default has editor access and second database has default editor and anonymous has no access. Now In first database there is registraion form which I used to register a user thorugh web in notes names.nsf. while registering user from first form I have written an agent which register user in names.nsf and at the same moment I also want to create a document into the second database which has user id and some more details.

When running agent it throws anonymous have no access to second database. Now is there way to swithc user internly after registering…

Or is ther any way to execute this task…

Pls Help

Vikas K Sinha