Export (0) Print
Expand All

SessionStartInfo.Username Property

Retrieves or sets the RunAs user for the job.


Namespace: Microsoft.Hpc.Scheduler.Session
Assembly: Microsoft.Hpc.Scheduler.Session (in Microsoft.Hpc.Scheduler.Session.dll)

'Usage
Dim instance As SessionStartInfo
Dim value As String

value = instance.Username

instance.Username = value

public string Username { get; set; }
/** @property */
public String get_Username ()

/** @property */
public void set_Username (String value)

public function get Username () : String

public function set Username (value : String)

Property Value

The RunAs user for the job, in the form domain\username.

The user name is limited to 80 characters. If this parameter is NULL, empty, or not valid, HPC searches the credentials cache for the credentials to use. If the cache contains the credentials for a single user, those credentials are used. However, if multiple credentials exist in the cache, the user is prompted for the credentials.

If the user under whose credentials the job runs differs from the job owner, the user under whose credentials the job runs must be an administrator. If that user is not an administrator, an exception occurs because that user does not have permission to read the job. The job owner is the user who runs the SOA client application. If you set the user under whose credentials the job runs to be the same as the job owner, that user does not need to be an administrator.

Platform Note: In Windows HPC Server 2008, if a user creates an unshared secure session that runs under the credentials of a second user, only the second user can send requests to the session. The first user cannot send requests to the session. In Windows HPC Server 2008 R2, if a user creates an unshared secure session that runs under the credentials of a second user, only the first user can send requests to the session. The second user cannot send requests to the session. In Windows HPC Server 2008 and Windows HPC Server 2008 R2, a session that is not secure accepts requests from all clients. A secure and shared session accepts requests based on the permissions that the access control list (ACL) in the job template specifies.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, with HPC Pack Client Utilities




Build Date:

2013-04-22

Community Additions

ADD
Show:
© 2014 Microsoft