You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/develop/automatically-open-a-task-pane-with-a-document.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Automatically open a task pane with a document
3
3
description: Learn how to configure an Office Add-in to open automatically when a document opens.
4
4
ms.topic: how-to
5
-
ms.date: 02/12/2025
5
+
ms.date: 09/22/2025
6
6
ms.localizationpriority: medium
7
7
---
8
8
@@ -58,7 +58,6 @@ Apply the following best practices when you use the autoopen feature.
58
58
59
59
Configure the manifest to specify the task pane page that should open automatically. The process depends on what type of manifest the add-in uses.
60
60
61
-
62
61
# [Unified manifest for Microsoft 365](#tab/jsonmanifest)
63
62
64
63
[!include[Unified manifest host application support note](../includes/unified-manifest-support-note.md)]
@@ -194,4 +193,5 @@ You can test the previous example by using your Microsoft 365 subscription to tr
194
193
195
194
- For a sample that shows you how to use the autoopen feature, see [Auto-open a task pane with a document](https://github.com/OfficeDev/Office-Add-in-samples/tree/main/Samples/office-add-in-commands/auto-open-task-pane).
196
195
-[Automatically open a task pane when an add-in is installed](automatically-open-on-installation.md)
197
-
-[Learn about the Microsoft 365 Developer Program](https://aka.ms/m365devprogram)
196
+
-[Learn about the Microsoft 365 Developer Program](https://aka.ms/m365devprogram)
197
+
-[Managing trust options for Office Add-ins](../publish/manage-trust-options.md)
You can configure your Office Add-in to load and run code as soon as the document is opened. This is useful if you need to register event handlers, pre-load data for the task pane, synchronize UI, or perform other tasks before the add-in is visible.
13
+
You can configure your Office Add-in to load and run code as soon as the document is opened. This is useful if you need to register event handlers, pre-load data for the task pane, synchronize UI, or perform other tasks before the add-in is visible.
14
14
15
15
> [!NOTE]
16
16
> The configuration is implemented with a method that your code calls at runtime. This means that the add-in *won't* run the *first time* a user opens the document. The add-in must be opened manually for the first time on any document. After the method runs, either in [Office.initialize](/javascript/api/office#office-office-initialize-function(1)), [Office.onReady](/javascript/api/office#office-office-onready-function(1)), or because the user takes a code path that runs it; then whenever the document is reopened, the add-in loads immediately and any code in the `Office.initialize` or `Office.onReady` method runs.
@@ -110,3 +110,4 @@ let behavior = await Office.addin.getStartupBehavior();
110
110
-[Share data and events between Excel custom functions and task pane tutorial](../tutorials/share-data-and-events-between-custom-functions-and-the-task-pane-tutorial.md)
111
111
-[Work with Events using the Excel JavaScript API](../excel/excel-add-ins-events.md)
112
112
-[Runtimes in Office Add-ins](../testing/runtimes.md)
113
+
-[Managing trust options for Office Add-ins](../publish/manage-trust-options.md)
Copy file name to clipboardExpand all lines: docs/publish/manage-trust-options.md
+37-11Lines changed: 37 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,49 @@
1
1
---
2
-
title: Trust custom protocol handlers that launch add-ins
3
-
description: How to use group policies for protocol handler trust in the registry to launch add-ins.
2
+
title: Managing trust options for Office Add-ins
3
+
description: How to disable trust prompts for users without installed add-ins and how to use group policies for protocol handler trust in the registry when launching add-ins.
4
4
ms.topic: how-to
5
-
ms.date: 08/15/2025
5
+
ms.date: 09/24/2025
6
6
ms.localizationpriority: medium
7
7
---
8
8
9
-
# Trust custom protocol handlers to launch add-ins
9
+
# Managing trust options for Office Add-ins
10
+
11
+
Office trust prompts help protect users by asking for consent before add-ins access their documents or launch from external protocols. While these security measures are important, there are scenarios where you don't want to prompt users to improve their experiences. This article covers how to disable trust prompts when the related add-in is not installed and how to configure protocol handler trust policies.
12
+
13
+
## Disable trust prompts for add-ins that aren't installed
14
+
15
+
When you share documents that contain add-in metadata, users without the required add-in installed may see trust prompts. These prompts appear when a document includes settings that instruct Office to automatically launch an add-in.
16
+
17
+
The following scenarios trigger trust prompts when the required add-in isn't installed.
18
+
19
+
- Documents with custom functions that use a [shared runtime](../develop/configure-your-add-in-to-use-a-shared-runtime.md).
20
+
- Documents configured to [automatically open a task pane](../develop/automatically-open-a-task-pane-with-a-document.md).
21
+
- Documents configured to [load add-ins when opened](../develop/run-code-on-document-open.md).
22
+
23
+
You can prevent these prompts from appearing for users who don't have your add-in installed. Disable trust prompts in your document by setting the [Settings.set](/javascript/api/office/office.settings#office-office-settings-set-member(1)) method to set the `"Office.DisableTrustUX"` setting to `true`.
This setting is saved in the document's OOXML metadata. When enabled, it prevents trust prompts in all the scenarios listed earlier in this section. This provides a better experience for users who don't need the add-in.
31
+
32
+
> [!IMPORTANT]
33
+
> This setting only applies to Office on Windows and Mac.
34
+
35
+
## Trust custom protocol handlers to launch add-ins
10
36
11
37
Let your Office Add-in launch from a custom protocol handler (like `mailto:` or your own scheme) without prompting users for consent. This is useful when you want a seamless experience for users, or when your organization needs to centrally manage which add-ins launch from which protocols.
12
38
13
39
> [!IMPORTANT]
14
-
> This article applies to Windows only. Support for this feature starts with Office Version 2408 (Build 17928.20018).
40
+
> This section applies to Windows only. Support for this feature starts with Office Version 2408 (Build 17928.20018).
15
41
16
-
## How protocol handler trust works
42
+
###How protocol handler trust works
17
43
18
44
A protocol handler lets an app or add-in launch from a URI (for example, clicking a `mailto:` link opens your email client). Office add-ins also launch this way. By default, users are prompted to trust each add-in and protocol pair. As an admin, pre-approve or block these pairs using group policy and the Windows registry.
19
45
20
-
## Registry key format
46
+
###Registry key format
21
47
22
48
To automatically trust a custom protocol handler for an add-in, create a registry key at one of the following locations (replace `<add-in ID>` with your add-in's [manifest ID](/javascript/api/manifest/id) or unified manifest [`id`](/microsoft-365/extensibility/schema/root#id).
23
49
@@ -30,11 +56,11 @@ Add the following values to the key.
30
56
-**Type:** REG_SZ
31
57
-**Data:**`Allow` or `Block`
32
58
33
-
## Set group policies
59
+
###Set group policies
34
60
35
61
Admins use group policy to manage protocol handler trust across the organization. The following sample files show how to set up these policies.
36
62
37
-
### Sample ADMX file
63
+
####Sample ADMX file
38
64
39
65
```xml
40
66
<?xml version="1.0" encoding="utf-16"?>
@@ -71,7 +97,7 @@ Admins use group policy to manage protocol handler trust across the organization
71
97
</policyDefinitions>
72
98
```
73
99
74
-
### Sample ADML file
100
+
####Sample ADML file
75
101
76
102
```xml
77
103
<?xml version="1.0" encoding="utf-16"?>
@@ -94,7 +120,7 @@ Admins use group policy to manage protocol handler trust across the organization
94
120
</policyDefinitionResources>
95
121
```
96
122
97
-
### Sample .REG file
123
+
####Sample .REG file
98
124
99
125
The following example shows how to configure the registry directly using a .REG file.
0 commit comments