Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

GetAFSecurityIdentity Class

  • Last UpdatedDec 15, 2025
  • 3 minute read
GetAFSecurityIdentity Class

Gets an AF Security Identity from an AF Server

The Get-AFSecurityIdentity cmdlet gets an AF Security Identity on an AF Server.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellGetAFSecurityIdentity

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[CmdletAttribute("Get", "AFSecurityIdentity", DefaultParameterSetName = "Name", 
	SupportsShouldProcess = true)]
public class GetAFSecurityIdentity : OSICmdletBase
<CmdletAttribute("Get", "AFSecurityIdentity", DefaultParameterSetName := "Name", 
	SupportsShouldProcess := true)>
Public Class GetAFSecurityIdentity
	Inherits OSICmdletBase

Dim instance As GetAFSecurityIdentity
[CmdletAttribute(L"Get", L"AFSecurityIdentity", DefaultParameterSetName = L"Name", 
	SupportsShouldProcess = true)]
public ref class GetAFSecurityIdentity : public OSICmdletBase
[<CmdletAttribute("Get", "AFSecurityIdentity", DefaultParameterSetName = "Name", 
	SupportsShouldProcess = true)>]
type GetAFSecurityIdentity =  
    class
        inherit OSICmdletBase
    end

The GetAFSecurityIdentity type exposes the following members.

Constructors

  NameDescription
Public method
GetAFSecurityIdentity

Properties

  NameDescription
Public property
AFServer

AF Server from which to retrieve the AF Security Identity

Public property
ID

The GUID of the AF Security Identity to get

Public property
Index

The index of the AF Security Identity to get

Public property
Name

The name of the AF Security Identity to get

Public property
Refresh

Refresh parent before getting the AF Security Identity

Examples

Get-AFSecurityIdentity -Name Administrators -Refresh -AFServer (Get-AFServer -Name PIAF1)

Gets the AF Security Identity "Administrators" from the AF Server "PIAF1"

Examples

Get-AFSecurityIdentity -Name * -Refresh -AFServer (Get-AFServer -Name PIAF1) | Where-Object -Property IsEnabled -EQ $False

Gets all "disabled" AF Security Identities from the AF Server "PIAF1". The AF Server object is refreshed before the AF Security Identites are retrieved.

Examples

Get-AFSecurityIdentity -Name * -Refresh -AFServer (Get-AFServer -Name PIAF1) | Where-Object -Property IsEnabled -EQ $False | Select-Object -Property Name,ModifyDate

Gets all "disabled" AF Security Identities from the AF Server "PIAF1" and outputs their Name and ModifyDate properties. The AF Server object is refreshed before the AF Security Identities are retrieved.

See Also

TitleResults for “How to create a CRG?”Also Available in