CopyUserMasks Method
Topic Last Modified: 2006-06-13
Copies the masks of one entity in a DACL object to another entity in the same DACL object.
Applies To
Syntax
objResult objDACL.CopyUserMasks(StrName1, StrName2);
Parameters
- StrName1
A string value of the name of the entity in the DACL object whose masks are copied. This value can either be the domain and username of a user or group, or a predefined role such as an "Author."
- StrName2
A string value of the name of the entity in the DACL object that receives the copied masks. This value can either be the domain and username of a user or group, or a predefined role such as an "Editor."
Return Value
An object that returns error codes and descriptions.
Example
var objErr = objDacl.CopyUserMasks("MyDomain\User1", "MYDOMAIN\\user2");
if(FAILED(objErr.number)){
//something went wrong, couldn t copy the masks
}