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
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. |
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Office Add-ins