Can't see Private folders under new ID

A user created a lot of private folders under his old ID file.  When we changed his ID file due to server upgrade, all his private folders could not be seen anymore.  He has to switch back to his old ID file in order to see them.  Is there a way to change the setting on the private folders so that he can see them under his new ID or do we have to create new folders under his new ID file and copy all the e-mails that he had to the new folders?
zdimaAsked:
Who is Participating?
 
HemanthaKumarConnect With a Mentor Commented:
Hi

Not a problem,

1. Login to the notes using OLD id.

2. Goto Design List and find private folders/views which will be enclosed in square brkts

3. select the folder/view , click edit/properties. This will open the properties dialogue box

4. Lookout for the ID:OFxxxxxxx:xxxxxxx-ONxxxxxxxx:xxxxxxxx, field and note down all the values denoted by x, exlcude OF and ON part. That is ur Document Unique ID.

5. Write an agent, with option as Run @Commands,


The code looks something like this

=======
dim session as New NotesSession
dim db as NotesDatabase
dim doc as NotesDocument
dim item as NotesItem

set db = session.CurrentDatabase
set doc = db.GetDocumentByUNID( "Unique Id got from step4" )

set item = doc.GetFirstItem( "$Readers" )
Call item.AppendToTextList( "New User Name (Canonicalized)" )
item.IsReaders = True
Call doc.Save(True,False)

=======


Good Luck
~Hemanth
0
 
ArunkumarCommented:
Hi

There is a way to do that but it is little bit tricky.

Here is as it goes

You should use the OLD id of the user to do this.

Open the Database with OLD id and you will see number of private folders/views in the design list. Note down the Document Unique Id of each folder/view.

Write an agent to look for the document by using GteDocumentByUNID and use the Doc Id's you have collected (loop through the array of Doc Ids)for lookup. Once you get the handle to the document, look for the $Readers Item and change or append the $Readers Field with the New ID (Should be canonicalized). Save the document.

Job Done

This should work a treat

PS: Grant the OLD User a Designer access to accomplish this, hope u know that. : )


Good Luck
~Hemanth
0
 
ArunkumarCommented:
Arunkumar changed the proposed answer to a comment
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
rfharrisCommented:
What a cool approach!  That is a neat trick ... modifying the access of the design objects using their UNIDs.
Thanks for posting that solution.
0
 
HemanthaKumarCommented:
Hi

That was a mess up, I have answered the question thru Arunkumar's Id (Buddy), Anyway It doesn't matter ...

Try the Soln and get back to me if u have any problems

Good Luck
~Hemanth
0
 
zdimaAuthor Commented:
Adjusted points to 75
0
 
zdimaAuthor Commented:
Hi Hemanth,
I haven't really done a lot of designing. Not enough to understand what you have said.  Can you possibly guide me through writing this agent? Also, the Document Unique ID of each folder is the one that you get by going to the document properties of the private folder right?
Thanks in advance for your help.
Zdima
0
 
zdimaAuthor Commented:
Thank you for the instructions.  There is one problem though. I did exactly as you said but when I click on OK, a Formula Error window appears with the following message: "An operator or semicolon was expected but none was encountered: 'session'"
It highlights the word "session" in the very first line where it says:
dim session as New NotesSession.

zdima

0
 
HemanthaKumarCommented:
Hi

Paste the code in the Initialize section of the agent. It should work fine


~Hemanth
0
 
zdimaAuthor Commented:
I was able to save the agent but when I try to run it, it comes up with an error message saying "Invalid Universal ID".  I checked the ID of the folder and it was correct.  I noticed one thing though, when I click on the private folder and go to Edit/properties, I see a unique ID but when I right-click on the same folder and select "document properties" it gives me a different ID.  Anyway, I tried both ID's and I still keep getting the same "Invalid Universal ID" error message.
0
 
HemanthaKumarCommented:
Hi

What is the ID you are using ?

Is the agent run by the user with OLD Id !

It should be run using OLD id only, because that id only can see that folder.

PS: Give the old id a editor or higher access to run the agent.

~Hemanth

0
 
zdimaAuthor Commented:
I did use the old ID when I created and ran the agent.  Old ID has Manager access to the database.
zdima
0
 
HemanthaKumarCommented:
Could you paste the DocID that ur using in the script

~Hemanth
0
 
HemanthaKumarCommented:
Does it work ???

~Hemanth
0
 
zdimaAuthor Commented:
Hi Hemanth,

I still keep getting the "Invalid Universal ID" error message. I will keep trying to find out what I can do to make it work..i'm sure that it's just a minor problem. Thank you for all of your help!!
zdima
0
 
HemanthaKumarCommented:
let me know if u got some problems which u can't resolve, I can help u to fix this. This soln worked for me like a magic and u can do lot using this technique..

Regards
Hemanth
0
All Courses

From novice to tech pro — start learning today.