Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Office.MailboxEnums.DelegatePermissions enum
- Package:
- outlook
This bitmask represents a delegate's permissions on a shared folder, or a user's permissions on a shared mailbox.
Remarks
Applicable Outlook mode: Compose or Read
Used by
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. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins
Feedback
Was this page helpful?
