PIIdentity.GetGroupMemberships Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Get all 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 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.