M-Files API 22.6.11519.0
ChangeAutomaticPermissionsToACL Method
VaultValueListItemOperations Object : ChangeAutomaticPermissionsToACL Method
The value list to look from.
The ID of the value list item to apply the changes to.
See NamedACL on AutomaticPermissions.
The name for the automatic permissions.

True if the automatic component can be bypassed by the user.

See CanDeactivate on AutomaticPermissions.

Operation flags.
Description
Changes the automatic permissions for the specified value list item. The specified automatic permissions will be applied to an object when the user selects this value list item in the metadata card of the object.
Syntax
Visual Basic
Public Sub ChangeAutomaticPermissionsToACL( _
   ByVal ValueList As Long, _
   ByVal ValueListItemID As Long, _
   ByVal AccessControlList As AccessControlList, _
   ByVal NameForAutomaticPermissions As String, _
   Optional ByVal CanDeactivate As Boolean = True, _
   Optional ByVal AutomaticPermissionsOperationOptions As MFAutomaticPermissionsOperationOptions = MFAutomaticPermissionsOperationOptionsNone _
) 
Parameters
ValueList
The value list to look from.
ValueListItemID
The ID of the value list item to apply the changes to.
AccessControlList
See NamedACL on AutomaticPermissions.
NameForAutomaticPermissions
The name for the automatic permissions.
CanDeactivate

True if the automatic component can be bypassed by the user.

See CanDeactivate on AutomaticPermissions.

AutomaticPermissionsOperationOptions
ValueDescription
MFAutomaticPermissionsOperationOptionsForceActiveThe changed automatic permission components are forced active.
MFAutomaticPermissionsOperationOptionsNoneNone
Operation flags.
Remarks

This method is available only if M-Files API is used in the server interface mode.

This is an alternative to using AutomaticPermissionsForObject property on ValueListItem.

See Also

VaultValueListItemOperations Object  | VaultValueListItemOperations Members