UserHelpers Class
Provides helpers for getting user information.
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | CurrentLoggedOnUserName | Gets the user name for the current logged-on user. If it fails, the property returns null. |
![]() ![]() | CurrentLoggedOnUserSid | Get the SID for the current logged-on user. If it fails, the property returns null. |
| Name | Description | |
|---|---|---|
![]() ![]() | GetCurrentLoggedOnUserGroupsSid() | Get the SIDs of the user groups that the current logged-on user belongs to. If the method fails, it returns null. |
![]() ![]() | GetUserGroupSids(WindowsIdentity^) | Get the SIDs of the user groups for a specified user. |
![]() ![]() | GetUserSid(WindowsIdentity^) | Gets the user SID for a token to a user context. |
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


