Office.MailboxEnums.DelegatePermissions enum

This bitmask represents a delegate's permissions on a shared folder, or a user's permissions on a shared mailbox.

Remarks

[ API set: Mailbox 1.8 ]

Applicable Outlook mode: Compose or Read

Examples

Office.context.mailbox.item.getSharedPropertiesAsync((result) => {
    if (result.status === Office.AsyncResultStatus.Failed) {
        console.error("The current folder or mailbox isn't shared.");
        return;
    }

    const delegatePermissions = result.value.delegatePermissions;

    // Check if the user has write permissions to the shared resource.
    if ((delegatePermissions & Office.MailboxEnums.DelegatePermissions.Write) != 0) {
        console.log("User has write permissions to the shared resource.");
        // Perform the necessary operations.
    }
});

Fields

Read = 1

Delegate or user has permission to read items.

Write = 2

Delegate or user has permission to create and write items.

DeleteOwn = 4

Delegate or user has permission to delete only the items they created.

DeleteAll = 8

Delegate or user has permission to delete any items.

EditOwn = 16

Delegate or user has permission to edit only they items they created.

EditAll = 32

Delegate or user has permission to edit any items.