PIIdentity.SetGroupMemberships Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Set the PI Groups associated with this PIUser identity.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void SetGroupMemberships( IList<string> groups )
Public Sub SetGroupMemberships ( groups As IList(Of String) ) Dim instance As PIIdentity Dim groups As IList(Of String) instance.SetGroupMemberships(groups)
public: void SetGroupMemberships( IList<String^>^ groups )
member SetGroupMemberships : groups : IList<string> -> unit
Parameters
Remarks
This method is only valid for an identity type of PIUser.
This method should only be called if IsDirty is , i.e. not impending changes to the PIIdentity object.