Gets or sets the local user or group being assigned.


string LocalTrustee {get; set;}

Property value

The local trustee; either a group or user. You can set either a name or ID for a local user. A local group string begins with the type flag %. You cannot specify a null or empty string. A user or group name string must match the regular expression (Regex):


A user ID string must match the regular expression:



LocalTrustee may throw one of the following exceptions:

  • ArgumentException if the local trustee string is null or empty.
  • ApplicationException if the method fails to update the role assignment (see the message returned by the exception for the reason).