M-Files API 23.11.13135.0
ChangeAutomaticPermissionsToNamedACL Method
VaultValueListItemOperations Object : ChangeAutomaticPermissionsToNamedACL Method
The ID of the value list.
The ID of the item to apply the changes to.

The access control list to be applied.

See NamedACL on AutomaticPermissions.

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 ChangeAutomaticPermissionsToNamedACL( _
   ByVal ValueList As Long, _
   ByVal ValueListItemID As Long, _
   ByVal NamedACL As Long, _
   Optional ByVal CanDeactivate As Boolean = True, _
   Optional ByVal AutomaticPermissionsOperationOptions As MFAutomaticPermissionsOperationOptions = MFAutomaticPermissionsOperationOptionsNone _
) 
Parameters
ValueList
The ID of the value list.
ValueListItemID
The ID of the item to apply the changes to.
NamedACL

The access control list to be applied.

See NamedACL on AutomaticPermissions.

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