About security and deployment

Microsoft Office InfoPath

Show All Show All

About security and deployment

Additional security features and deployment functionality have been added to Microsoft Office InfoPath 2003 in Service Pack 1. Support has been added to allow form templates to be moved from one location to another or sent as an attachment to an e-mail message. In addition, support has been added to the InfoPath design mode to facilitate the creation and deployment of fully trusted forms.

Security levels

Form templates can have one of three different security levels, depending on where the form is located. These security levels are as follows:

ShowRestricted

ShowDomain

ShowFull Trust

Note  All forms generated in the InfoPath designer have a security level associated with them. InfoPath will attempt to open forms at their associated security level. If the security level associated with the form is higher than the security level that can be granted to it, the form will not open.

Forms are granted security levels based on the location from which the form was opened. For more information, see the Trust levels section.

Trust levels

The highest level of trust granted to a form template is determined by the "cached from" location (that is, where the form is cached from) and other verification code, as described in the following table. The attributes listed in the table (for example, HTTP, UNC, requireFullTrust) are cache-based entries that are used to determine the level of trust granted to a form.

Trust Level Granted Trust Level Granted Trust Level Granted Trust Level Granted Trust Level Granted
Highest Level of Trust Granted Full Trust Client Computer (Sandboxed) Intranet (Sandboxed) Internet (Sandboxed) Restricted
file: LocationId=CachedFromLocation   X      
file: LocationId<>CachedFromLocation or no LocationId (regardless of where the form came from)         X
CachedFromLocation: Intranet HTTP or HTTPS     X    
CachedFromLocation: Internet HTTP or HTTPS       X  
CachedFromLocation: UNC     X    
Installed Template (requireFullTrust="yes") X        
Installed Template (requireFullTrust="no")   X      
Template with trusted publisher certificate X        
Extracted Form Files   X      

All form files opened in the InfoPath editor are bound by a set of conditions that determine the security level in which the form will open and whether it will open. When an InfoPath form is opened in the editor, it will either be opened with an appropriate security level, or it will fail to load. If a form requests a higher security level than it can be granted (a form can request a specific security level using the trustLevel or requireFullTrust attribute), it will not be permitted to load. Otherwise, it will be loaded with the security level it requests. If the form template is not permitted to open with the requested security level, the user will not be able to open the form and will receive the "Insufficient Security Privilege Warning" error message.

The following table describes the conditions required for opening a form at each security level and the resultant behavior when the user attempts to open the form:

Form asks for: Form asks for: Form asks for:
Editor Opens/Fails Full Trust (requireFullTrust="yes") Domain Trust (trustLevel="Domain" or blank) Restricted (trustLevel="Restricted")
Highest trust level InfoPath can grant based on evidence Trusted (installed or trusted certificate) Editor opens at Full Trust level N/A N/A
Highest trust level InfoPath can grant based on evidence Domain Trust: Client Computer Fails to open Editor opens at Domain level Editor opens at Restricted level
Highest trust level InfoPath can grant based on evidence Domain Trust: Intranet Fails to open Editor opens at Domain level Editor opens at Restricted level
Highest trust level InfoPath can grant based on evidence Domain Trust: Internet Fails to open Editor opens at Domain level Editor opens at Restricted level
Highest trust level InfoPath can grant based on evidence Restricted Fails to open Fails to open Editor opens at Restricted level

ShowSpecifying a security level

Mail deployment and mobile form templates

Microsoft Office InfoPath 2003 Service Pack 1 allows you to send your form templates as an attachment to an e-mail message and to move them from one location to another. Mail deployment is an easy and effective way to distribute forms for interoffice use as well as to deploy forms to remote users.

ShowUnderstanding form identity

ShowDesigning a form to send as an attachment to an e-mail message

Show Sharing forms by e-mail message or from a common shared location

ShowCompatibility