AFSecurityOperation Enumeration
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
The operation used when adding user security rights to objects.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public enum AFSecurityOperation
Public Enumeration AFSecurityOperation Dim instance As AFSecurityOperation
public enum class AFSecurityOperation
type AFSecurityOperation
Members
| Member name | Value | Description | |
|---|---|---|---|
| Replace | 0 | Add new ACE and replace existing ACE with the following behaviors: When adding an access ACE:
| |
| Update | 4 | Add new ACE and update existing ACE. Behaves exactly same as Replace operation except the full list of access and deny rights must be supplied or they will be removed. | |
| Merge | 1 | Add new ACE and merge existing ACE with the following behaviors: When adding an access ACE:
| |
| NoReplace | 2 | Only add new ACE if an existing ACE does not exist. |
Remarks
This enumeration is used by the AddUser Overload
and AddIdentity Overload methods
to add security rights for a user or identity to existing objects.