AuthorizeAttribute.Users Property
Gets or sets the users that are authorized to access the controller or action method.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Property Value
Type: System.StringThe users that are authorized to access the controller or action method.
The following example shows how to limit access to a controller to only the specified users.
[Authorize(Users="Alice,Bob")] public class RestrictedContentController : Controller { . . . }
Show: