RunAsList

Gets or sets the run-as list for this right.

Syntax

IList<SecurityIdentifier> RunAsList {get; set;} 

Property value

The run-as list for the right.

Discussion

If the RunAsType property is set to Self, the remote application is run under the logged-in user account, but with the additional privileges of the groups whose SIDs are listed in the RunAsList property. For example, if the NetworkAccess right is set to run as Self and RunAsList contains the SID of the Network Admins group, then this application runs with the permissions of the logged-in user plus the permissions of the Network Admins group.

If the RunAsType property is set to User, the remote application is run under the user whose SID is listed in the RunAsList property. In this case, the RunAsList property contains only a single SID. For example, if the NetworkAccess right is set to run as User and RunAsList contains the SID of the user NetAdmin, then this application runs with the permissions of the NetAdmin user.

If the RunAsList property is empty, this right is invalid and an exception is thrown when you call the Commitmethod.

Note:   This property can only be used in .NET programs. Use the RunAs property for VBScript.