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

PI Powershell

AddAFSecurityIdentity Class

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

Adds an AF Security Identity to an AF Server

The Add-AFSecurityIdentity cmdlet creates a new AF Security Identity on an AF Server.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellAddAFSecurityIdentity

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

Syntax

[CmdletAttribute("Add", "AFSecurityIdentity", SupportsShouldProcess = true)]
public class AddAFSecurityIdentity : OSICmdletBase
<CmdletAttribute("Add", "AFSecurityIdentity", SupportsShouldProcess := true)>
Public Class AddAFSecurityIdentity
	Inherits OSICmdletBase

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

The AddAFSecurityIdentity type exposes the following members.

Constructors

  NameDescription
Public method
AddAFSecurityIdentity

Properties

  NameDescription
Public property
AFServer

AF Server on which to add the AF Security Identity

Public property
CheckIn

Check in changes immediately

Public property
Description

Description to add to the AF Security Identity

Public property
Name

Name of the AF Security Identity to add

Examples

Add-AFSecurityIdentity -Name "Floor Operators" -Description "All plant floor operators" -CheckIn -AFServer (Get-AFServer -Name "PIAF1")

Adds an AF Security Identity "Floor Operators" to the AF Server "PIAF1". The change is checked in immediately.

Examples

$MyNewIdentity = Add-AFSecurityIdentity -Name "Floor Operators" -Description "All plant floor operators" -CheckIn -AFServer $afServer

Where:

$afServer = Get-AFServer -Name "PIAF1"

Adds an AF Security Identity "Floor Operators" to the AF Server "PIAF1" and stores the new object in $MyNewIdentity. The change is checked in immediately.

See Also

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