Share via


DACL Templates

DACL Templates

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The tables in this section describe access mask templates that you can use to compare with the masks of a user, group, or role. The Security.js file contains functions whose names are the names of these templates, and they return discretionary access control list (DACL) objects containing the masks described in these tables.

To use DACL templates, use the template name for the objDACLTemplate parameter with the following methods:

Method Description
DACL.MakeEqualToTemplate Method Sets the masks in a DACL object equal to the masks of a specified entity in a DACL template object.
DACL.SetByTemplate Method Provides the ability to bit-wise OR the masks of the DACL object, according to a specified DACL template name and entity name.
DACL.ClearByTemplate Method Clears from a DACL object the masks of a specified entity in a DACL template.
Entity.MakeEqualToTemplate Method Sets the masks in an entity object equal to the masks of a specified entity in a DACL template object.
Entity.SetByTemplate Method Adds masks to an entity object from a specified entity in a DACL template object.
Entity.ClearByTemplate Method Clears from an entity object the masks of a specified entity in a DACL template.

Example

var e = objDacl.SearchForObjectByNT4Name("MYDOMAIN\\User1");
var objMapiRoles = DaclLegacyRoles();   //returns the DACL template with the mapi roles
if(e.HasMaskByTemplate("Owner", objMapiRoles)) {
    //user has that mapi role
}

This section contains the following topics:

DACLLegacyRoles Template

DACLLegacyMetaRights Template

DACLWebStorageItem Template

DACLWebStorageFolder Template

DACLNTFile Template

DACLNTFolder Template

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.