title: MVC Azure AD Authorization Roles
body: <p>I have issues using the <code>[Authorize]</code> attribute in MVC.</p>
  
  <p>Here are the steps taken:</p>
  
  <ol>
  <li>Create Azure Active Directory called <code>TestAD1</code></li>
  <li>Insert serveral users in the AD</li>
  <li>Create a Group called <code>TestGroup1</code></li>
  <li>Using visual studio 2013 create a MVC project with <code>Windows Authentication</code> as authentication method</li>
  <li>Insert <code>[Authorize]</code> above a controler method</li>
  <li>Publish the site</li>
  <li>In the azure portal configure the website to use azure active directory as authentication</li>
  </ol>
  
  <p>These steps work fine, everything acts like expected the problem is when i change the authorize attribute to:</p>
  
  <p><code>[Authorize(Roles=@"TestAD1\TestGroup1")]</code></p>
  
  <p>I always get "You do not have permission to view this directory or page."</p>
  
  <p>I am aware of the following solutions but it doesn't fit my project needs:
   * Write my own <code>RoleProvider</code>
   * Use web.config to manage permissions</p>