PIIdentity.SetGroupMemberships Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Set the PI Groups associated with this PIUser identity.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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.