What permission to access a hidden item

M

Max Carussi

I've created a hidden item into a public folder which should be used as a
storage point for counters. Now users who are granted to create and delete
items in this folder (and they can)cannot modify properties on this hidden
item. The Item is accessed by script code from a custom form.
 
K

Ken Slovak - [MVP - Outlook]

Was the hidden item created using CDO in the Folder.HiddenMessages
collection? If so there is no access to that collection either from
the Outlook UI or from the Outlook object model.

If you created the item in a different way please explain how you did
so and if the item is visible to the users of that folder.
 
M

Max Carussi

Hi ken,

yes I used the indications you gave me in a previous thread abd I created
this hidden item with CDO using the hiddenmessages collection.
I'm accessing the Item from the script with CDO. But I had to give users
'Owner' permission to the folder otherwise they couldn't modify the custom
property holding the counter value.
Max Carussi - [JAD - MS Platform]
 
K

Ken Slovak - [MVP - Outlook]

So what is the question then? A hidden item by definition is never
seen in the UI.
 
M

Max Carussi

Hi Ken,

the user creates a new folder entry by posting a custom form. When the form
is posted the script code inside it (within the write event) looks for a
specific hidden item (it uses CDO to perform this operation) in the same
folder whose message class is "IPC.Counters", reads a custom property named
counter and increments it.
I gave the users permission to read,write and delete any items in the folder
but not the ability to delete or add subfolders to this folder.
It happened that the hidden item couldn't be updated. So I extended the
permission to 'Owner' and now it works fine.
The fact is that I'd prefere not to give such a wide permission o prevent
the user to accidentally remove the folder or add subfolders to it or change
the folder permissions.

Max


Ken Slovak - said:
So what is the question then? A hidden item by definition is never
seen in the UI.




Max Carussi said:
Hi ken,

yes I used the indications you gave me in a previous thread abd I created
this hidden item with CDO using the hiddenmessages collection.
I'm accessing the Item from the script with CDO. But I had to give users
'Owner' permission to the folder otherwise they couldn't modify the custom
property holding the counter value.
Max Carussi - [JAD - MS Platform]
 
K

Ken Slovak - [MVP - Outlook]

Did you try one of the "publishing" permissions?

I suppose another alternative would be to use a specific dynamic logon
to CDO instead of a piggy-backed logon. In that case you could use
logon information that has permissions as Owner. You could encrypt
that information in the registry or an INI file or something and read
it in and decrypt it on the fly so it wouldn't be hard coded into the
form code.

See some of the different logon code samples at
www.cdolive.com/cdo5.htm for examples of using different logons in
CDO.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top