UserHelpers Class

 

Provides helpers for getting user information.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

System::Object
  Microsoft.ConfigurationManagement.Messaging.Framework::UserHelpers

[SerializableAttribute]
public ref class UserHelpers abstract sealed 

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticCurrentLoggedOnUserName

Gets the user name for the current logged-on user. If it fails, the property returns null.

System_CAPS_pubpropertySystem_CAPS_staticCurrentLoggedOnUserSid

Get the SID for the current logged-on user. If it fails, the property returns null.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetCurrentLoggedOnUserGroupsSid()

Get the SIDs of the user groups that the current logged-on user belongs to. If the method fails, it returns null.

System_CAPS_pubmethodSystem_CAPS_staticGetUserGroupSids(WindowsIdentity^)

Get the SIDs of the user groups for a specified user.

System_CAPS_pubmethodSystem_CAPS_staticGetUserSid(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.

Return to top
Show: