title: Fetch groups from Azure Active Directory to AAD B2C
body: <p>I have an Azure Active Directory with some internal user groups that define their different roles.</p>
  <p>Now I have to add a B2C tenant in order to let also external users be authenticated but with different roles. The thing is AAD B2C actually does not support roles management so the best choice is creating custom policies and outputting them in the access_token. <a href="https://www.youtube.com/watch?v=C9qN6QqnxQ8" rel="nofollow noreferrer">This video explains how.</a></p>
  <p>Then, my question is... how could I import the AAD user's groups to the AAD B2C in order to extract them later as a custom claims from the token?</p>
  <p>Thanks in advance!</p>