M-Files API 23.11.13135.0
SetPermissionExpression Method
Expression Object : SetPermissionExpression Method
The permission expression type identifies the evaluated feature of a permission. Multiple permission expression type flags cannot be combined. Use only one single value at a time.
Description
Set the Permission expression.
Syntax
Visual Basic
Public Sub SetPermissionExpression( _
   ByVal PermissionsExpressionType As MFPermissionsExpressionType _
) 
Parameters
PermissionsExpressionType
ValueDescription
MFACLThe access control list (ACL). Cannot be used as a search criterion.
MFDeletableByDeletable by the user/group.
MFEditableByEditable by the user/group.
MFFullControlByFull control by the user/group.
MFObjectsAttachableToThisItemByObjects attachable to this item by user/group.
MFPermissionsChangeableByPermissions may be changed by the user/group.
MFVisibleToVisible to the user/group.
The permission expression type identifies the evaluated feature of a permission. Multiple permission expression type flags cannot be combined. Use only one single value at a time.
Remarks

This expression type is used to filter objects based on their permissions.

The target value (the right-hand operand) is assigned to the TypedValue object encapsulated in the parent SearchCondition object. The expected type of the value depends on the permission expression type.

 

Right-Hand Operand Types for Permission Expression Types

Permission Expression Type

Expected Typed Value Data Type Remarks

MFACL

MFDatatypeACL  

MFVisibleTo

MFDatatypeLookup References a user or user group.

MFEditableBy

MFDatatypeLookup References a user or user group.

MFPermissionsChangeableBy

MFDatatypeLookup References a user or user group.

MFFullControlBy

MFDatatypeLookup References a user or user group.

A lookup reference to a user or user group points to a corresponding built-in value list. See the UserAccount and UserGroup classes for resolving the user or group ID for the lookup reference.

 

 

A permission expression and condition as seen in M-Files Desktop.

See Also

Expression Object  | Expression Members