DACL Templates
Topic Last Modified: 2006-11-30
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 |
---|---|
Sets the masks in a DACL object equal to the masks of a specified entity in a DACL template object. |
|
Provides the ability to bit-wise OR the masks of the DACL object, according to a specified DACL template name and entity name. |
|
Clears from a DACL object the masks of a specified entity in a DACL template. |
|
Sets the masks in an entity object equal to the masks of a specified entity in a DACL template object. |
|
Adds masks to an entity object from a specified entity in a DACL template object. |
|
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
}