title: Azure Active Directory B2C Custom Roles and Policies
body: <p>Good day,
  I am using .Net Core 3.1 Web app and Azure Active Directory B2C for user login, so far it works well and as expected. 
  Now i want to use the Roles, Policies and Claims which are configured in per user in the sql server. Each user id (azure b2c object id) is mapped to Roles.</p>
  
  <p>How do i retrieve them in the startup.cs file ? I need to use similar to :</p>
  
  <pre><code>        services.AddAuthorization(options =&gt;
          {
              options.AddPolicy("AdminAccess", policy =&gt; policy.RequireRole("Admin"));
          });  
  </code></pre>
  
  <p>Thank you very much advance.
  Regards</p>