title: Can I use [Authorize(Role = "Role")] Attribute to do custom redirects per role?
body: <p>I've been through a couple of questions and none of them seem to fit my problem: <a href="https://stackoverflow.com/questions/1698389/redirect-a-user-to-a-specific-view-when-authorization-fails">This</a>, and <a href="https://stackoverflow.com/questions/977071/redirecting-unauthorized-controller-in-asp-net-mvc">this</a>.</p>
  <p>While these questions do accurately depict creating a custom Authorize Attribute (So no need to go through that in any possible answers), my problem goes a little further:</p>
  <p><em>I need to redirect to specific Views based on which <strong>role</strong> is being Authorized.</em>)</p>
  <h1>Example:</h1>
  <pre><code>[Authorize(Role = &quot;Admin&quot;)]
  </code></pre>
  <p>needs to redirect to a different View than:</p>
  <pre><code>[Authorize(Role = &quot;User&quot;)]
  </code></pre>
  <p>If this is even possible, please provide me with a solution.</p>
  <p>Thanks.</p>