title: Get Azure groups information in keycloak id_token
body: <p>I have registered Azure active directory as an identity provider in the Keycloack server.
  I am getting groups array in azure's id_token and it looks like:</p>
  <pre><code>{
       aud: &quot;https://contoso.onmicrosoft.com/scratchservice&quot;,
       iss: &quot;https://sts.windows.net/b9411234-09af-49c2-b0c3-653adc1f376e/&quot;,
       iat: 1416968588,
       nbf: 1416968588,
       exp: 1416972488,
       ver: &quot;1.0&quot;,
       tid: &quot;b9411234-09af-49c2-b0c3-653adc1f376e&quot;,
       amr: [
        &quot;pwd&quot;
       ],
       roles: [
        &quot;Admin&quot;
       ],
       oid: &quot;6526e123-0ff9-4fec-ae64-a8d5a77cf287&quot;,
       upn: &quot;[hidden email]&quot;,
       unique_name: &quot;[hidden email]&quot;,
       sub: &quot;yf8C5e_VRkR1egGxJSDt5_olDFay6L5ilBA81hZhQEI&quot;,
       family_name: &quot;User&quot;,
       given_name: &quot;Sample&quot;,
       groups: [
        &quot;0e129f6b-6b0a-4944-982d-f776000632af&quot;,
        &quot;323b13b3-1851-4b94-947f-9a4dacb595f4&quot;,
        &quot;6e32c250-9b0a-4491-b429-6c60d2ca9a42&quot;,
        &quot;f3a161a7-9a58-4e8f-9d47-b70022a07424&quot;,
        &quot;8d4c81b2-b1ad-476d-9574-544d155aa6ff&quot;,
        &quot;1bf80164-ff24-4866-b19c-6212e5b9a847&quot;,
        &quot;76f80127-f2cd-46f4-8c52-8edd8bc749b1&quot;,
        &quot;0ba27160-44d0-42b5-b90c-47b3fcc48e35&quot;
       ],
       appid: &quot;b075ddef-0efa-123b-997b-de1337c29185&quot;,
       appidacr: &quot;1&quot;,
       scp: &quot;user_impersonation&quot;,
       acr: &quot;1&quot;
   }
  </code></pre>
  <p>In id_token generated by the Keycloak server, there are no groups.
  How can I get azure AD groups in keycloack id_token.</p>