PIIdentity.GetGroupMemberships Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Get all 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 IList<string> GetGroupMemberships()
Public Function GetGroupMemberships As IList(Of String) Dim instance As PIIdentity Dim returnValue As IList(Of String) returnValue = instance.GetGroupMemberships()
public: IList<String^>^ GetGroupMemberships()
member GetGroupMemberships : unit -> IList<string>
Return Value
Type: IListStringReturns a list of group names associated with this identity.
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.