Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting Exchange Item's permissions programmatically.

0 views
Skip to first unread message

news://msnews.microsoft.com

unread,
May 21, 2004, 12:23:12 PM5/21/04
to
Hello,
I am trying to programmatically set security principal permissions on
Exchange items. I have looked at and used the Microsoft Security Module
provided with the Exchange 2003 SDK with some success. Currently, setting
permissions on folders seems to be working fine, however, when attempting to
set permissions on a web storage item (non folder item) the mask does not
seem to set properly. I have written my own web page which implements the
Security.js and LoadSaveDacl.js files provided with the Application Security
module and neither mine nor the sample web application provided with the SDK
seem to work properly. Does anyone know other ways to manipulate the
permissions on an exchange item? If so, could you please provide links or
titles of research resources.


Tom Rizzo [MSFT]

unread,
May 24, 2004, 5:37:44 PM5/24/04
to
What type of permission are you trying to set? Just standard
read/write/visibility on the item. Should work fine from the security
module.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp

This posting is provided "AS IS" with no warranties, and confers no rights.

"news://msnews.microsoft.com" <dsha...@cygentech.com> wrote in message
news:O$mxm$0PEHA...@TK2MSFTNGP12.phx.gbl...

David Sharner

unread,
May 24, 2004, 6:37:34 PM5/24/04
to
I am using the DaclWebTemplate mask templates . I am trying to set all
permissions provided in this template. The Write owned objects, Delete
owned objects and View item permissions are what seem not to be setting
properly. The problems are as follows:
1) The "View items" permission is reading that both deny and allow bits are
set.
2) Can change the View items to allow only if I deselect the deny check,
reselect the deny check and then select the allow check.
3) The Write and Delete owned objects will not set. Currently it reports
that they are both set to deny. I set them to allow and reload the user ACEs
and the change did not take as they are both set to deny again.

The code I am using to set these checkboxes is as follows:

//Set Write owned object check boxes.
templateMasks = daclTemplate.SearchForObjectByNT4Name("Write owned
objects").Masks;
document.frmLoad.chkWriteOwnedObjAllow.checked = ((AceEntity.Masks[0] &
templateMasks[0]) == templateMasks[0]);
document.frmLoad.chkWriteOwnedObjDeny.checked = ((AceEntity.Masks[1] &
templateMasks[1]) == templateMasks[1]);

//Set Delete owned objects check boxes.
templateMasks = daclTemplate.SearchForObjectByNT4Name("Delete owned
objects").Masks;
document.frmLoad.chkDeleteOwnedObjAllow.checked = ((AceEntity.Masks[0] &
templateMasks[0]) == templateMasks[0]);
document.frmLoad.chkDeleteOwnedObjDeny.checked = ((AceEntity.Masks[1] &
templateMasks[1]) == templateMasks[1]);

//Set View item check boxes.
templateMasks = daclTemplate.SearchForObjectByNT4Name("View item").Masks;
document.frmLoad.chkViewItemAllow.checked = ((AceEntity.Masks[0] &
templateMasks[0]) == templateMasks[0]);
document.frmLoad.chkViewItemDeny.checked = ((AceEntity.Masks[1] &
templateMasks[1]) == templateMasks[1]);

"Tom Rizzo [MSFT]" <tho...@microsoft.com> wrote in message
news:eP$KUddQE...@TK2MSFTNGP11.phx.gbl...

0 new messages