AFAdmin.ResyncUsers Method
- Last UpdatedSep 18, 2024
- PI System
- AF SDK 2024
- Developer
Updates the usernames in AF.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156
Syntax
public static void ResyncUsers( PISystem system )
Public Shared Sub ResyncUsers ( system As PISystem ) Dim system As PISystem AFAdmin.ResyncUsers(system)
public: static void ResyncUsers( PISystem^ system )
static member ResyncUsers : system : PISystem -> unit
Parameters
- system
- Type: OSIsoft.AF.PISystem
The operation will be performed on the specified PISystem.
Exceptions
Exception | Condition |
---|---|
SecurityException | This exception is thrown when attempting to execute without Admin security rights. |
ArgumentNullException | This exception is thrown when attempting to execute on a PISystem that is null or deleted. |
NotSupportedException | This exception is thrown when attempting to execute on a PISystem that does not support the AdminFunctionality feature. |
Remarks
This method will update the usernames in AF with that from Active Directory.
Use the PISystem.Supports method to check if the PISystem supports the AdminFunctionality feature.
![]() |
---|
Requires the Admin right to execute. |
![]() |
---|
This method will error on servers before AF 2.10.10. |