none
Shared calendar permissions and adding user defined properties RRS feed

  • Question

  • It appears that if an Outlook users calendar is shared with another outlook user and the permissions for that user are set to Can Edit then the Property Assessor returns 18 for the folder PR_ACCESS (http://schemas.microsoft.com/mapi/proptag/0x0FF40003)

    This relates to flags MAPI_ACCESS_READ (2) + MAPI_ACCESS_CREATE_CONTENTS (16)

    So it allows me to create a new appointment in the calendar, update that appointment and even delete it

    However it does not allow me to add User Defined Properties to the folder

    For that I seem to need MAPI_ACCESS_WRITE (1)

    So in terms of an Outlook user giving this permission to anther user how do they do this from within Outlook ?

    Thanks

    Monday, October 14, 2019 10:20 AM

All replies

  • The user needs to have edit permissions.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, October 14, 2019 10:51 AM
  • The user needs to have edit permissions.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    They do, in Outlook it is set to "Can Edit"

    Monday, October 14, 2019 12:46 PM
  • What is your code adding the properties? Are you adding the properties on the folder level?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, October 14, 2019 11:40 PM
  • Yes I get the UserDefinedProperties object of the Folder object call Find to see if my field is already there and if not call Add

    Then at the appointment level I get the UserProperties object of the Appointment and call Add followed by Value to set the value

    Tuesday, October 15, 2019 8:12 AM
  • What is the call to UserProperties.Add?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, October 15, 2019 11:36 AM
  • This one

    https://docs.microsoft.com/en-us/office/vba/api/outlook.userproperties.add

    And I pass "MyCustomField" olInteger True olFormatIntegerPlain Nothing

    Tuesday, October 15, 2019 1:11 PM
  • I was asking about your actual code. In particular, what is the value of the AddToFolderFields parameter? If it is true, have you tried false?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, October 15, 2019 2:28 PM