Edit

Office.AccessControls interface

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Represents access controls that specify whether the decrypted contents of a message can be copied and pasted, printed, or saved.

Properties

allowCopyPaste

If true, specifies that the decrypted contents of a message can be copied and pasted.

allowPrint

If true, specifies that the decrypted contents of a message can be printed.

allowSave

If true, specifies that the decrypted contents of a message can be saved.

Property Details

allowCopyPaste

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If true, specifies that the decrypted contents of a message can be copied and pasted.

allowCopyPaste?: boolean;

Property Value

boolean

Remarks

API set: Mailbox preview

Important:

  • In Outlook on the web, setting the allowCopyPaste property to false also prevents users from capturing their screen in the form of screenshots or recordings. The screen capture policy remains in effect until the user reloads the Outlook browser tab.

  • In Outlook on the web and the new Outlook on Windows, setting the allowCopyPaste property to true allows the user to copy content by selecting Copy from the context menu or pressing Ctrl+C. However, if another access control is set to false, the context menu becomes unavailable. The user must use Ctrl+C instead.

allowPrint

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If true, specifies that the decrypted contents of a message can be printed.

allowPrint?: boolean;

Property Value

boolean

Remarks

API set: Mailbox preview

allowSave

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If true, specifies that the decrypted contents of a message can be saved.

allowSave?: boolean;

Property Value

boolean

Remarks

API set: Mailbox preview