AFSecurityIdentity.FindSecurityIdentity Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Retrieves the AFSecurityIdentity object with the specified unique identifier.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public static AFSecurityIdentity FindSecurityIdentity( PISystem system, Guid id )
Public Shared Function FindSecurityIdentity ( system As PISystem, id As Guid ) As AFSecurityIdentity Dim system As PISystem Dim id As Guid Dim returnValue As AFSecurityIdentity returnValue = AFSecurityIdentity.FindSecurityIdentity(system, id)
public: static AFSecurityIdentity^ FindSecurityIdentity( PISystem^ system, Guid id )
static member FindSecurityIdentity : system : PISystem * id : Guid -> AFSecurityIdentity
Parameters
- system
- Type: OSIsoft.AFPISystem
The PISystem to search for the desired object. - id
- Type: SystemGuid
The unique identifier of the object to find.
Return Value
Type: AFSecurityIdentityThe AFSecurityIdentity in the PISystem which matches the unique identifier.
Remarks
The AFSecurityIdentity object with the specified id
is returned. If the object does not exist, then will be returned.
The PISystem.Supports method can be used to check if the
PISystem supports the SecurityIdentity feature.