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

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 to match those of its own permissions. 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 ChangeAutomaticPermissionsToItemsOwnPermissions( _
   ByVal ValueList As Long, _
   ByVal ValueListItemID As Long, _
   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.
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