AFActiveDirectoryProperties.AccountName Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The account name used to access Active Directory from the server.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public string AccountName { get; }
Public ReadOnly Property AccountName As String Get Dim instance As AFActiveDirectoryProperties Dim value As String value = instance.AccountName
public: property String^ AccountName { String^ get (); }
member AccountName : string with get
Property Value
Type: StringReturns the account name used to access Active Directory from the server.
Remarks
Accessing the information in active directory is controlled by security.
This property specifies the account that the server uses when accessing
Active Directory. Use the SetAccount(String, SecureString) method to set the
value of this property.
If not specified, then the account that the server is
running under is used. You only need to specify this property if the account
that the server is running under does not have access to Active Directory.
| If the ImpersonateUser property is set to , then this property setting is not used. |