WindowsUser

The WindowsUser class manages the Windows user profile information of a user.

Syntax

public interface IWindowsUser

Methods

The WindowsUser class provides the following methods:

This method Does this

AddUserRoleAssignment

Adds a role assignment to the user profile.

GetDirectoryEntry

Returns the directory entry for the user from Active Directory.

GetEffectiveUserRoleAssignments

Returns an enumeration of the effective user role assignments.

Properties

The WindowsUser class provides the following property:

This property Does this

Name

Gets the Windows login name of the user.

Discussion

A user’s Windows profile consists of the information used by Windows to identify the user. See the HierarchicalUser class for a user’s UNIX profile.

The rights you assign to users and group in a particular role apply to Active Directory users and groups. They can also apply to locally-defined users and groups if you configure the role definition to allow local accounts to be assigned to the role. All Windows users, including local users, must be assigned at least one role that allows them log on locally, remotely, or both.