Applies to: desktop apps only
The UserGroups property gets a semicolon delimited string detailing the groups to which the user belongs.
This property is read-only.
HRESULT get_UserGroups( [out] BSTR *pbstrUserGroups );
Pointer to a BSTR that is set on return to a string value specifying a semicolon delimited string detailing the groups to which the user belongs.
This property method returns S_OK if the call is successful; otherwise, it returns an error code.
Memory is allocated by the Microsoft Firewall service, which implements the UserGroups property. The caller should free the memory using SysFreeString. For recommendations on memory allocation for BSTR strings, see Best Practices.
Note User group information may not always be available, and is specifically unavailable for Windows users. For a Windows user, this method will return E_NOTIMPL.
Minimum supported client
Minimum supported server
|Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)|
|Forefront Threat Management Gateway (TMG) 2010|
Build date: 7/12/2010