Permission Interface

Use the Permission object to restrict permissions to the active document and to return or set specific permissions settings.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

public interface Permission : _IMsoDispObj, 

The Permission property of the Microsoft Office Word 2003 Document object, the Microsoft Office Excel 2003 Workbook object, and the Microsoft Office PowerPoint 2003 Presentation object returns a Permission object.

Use the Enabled property to determine whether permissions are restricted on the active document. Use the Count property to return the number of users with permissions and the RemoveAll method to reset all existing permissions.

The DocumentAuthor, EnableTrustedBrowser, RequestPermissionURL, and StoreLicenses properties provide additional information about permissions settings.

The Permission object gives access to a collection of UserPermission objects. Use the UserPermission object to associate specific sets of rights with individual users. While some permissions granted through the user interface (such as msoPermissionPrint) apply to all users, you can use the UserPermission object to assign them on a per-user basis with per-user expiration dates.

Microsoft Office Information Rights Management supports the use of administrative permission policies which list users and groups and their document permissions. Use the ApplyPolicy method to apply a permission policy and the PermissionFromPolicy, PolicyName, and PolicyDescription properties to return policy information.

The Permission object model is available regardless of whether permissions are restricted on the active document. The Permission property of the Document, Workbook, and Presentation objects does not return Nothing when the active document does not have restricted permissions. Use the Enabled property to determine whether a document has restricted permissions.

Use of the Permission object raises an error when the Windows Rights Management client is not installed.