<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I'm sorry.  It isn't logged to console, but IMPERSONATE is an
    event.  You can filter and view it in the admin console, or even
    create a custom listener to listen for impersonate events. 
    Currently, to have it logged in the log file, you'll have to turn on
    debug mode for events "org.keycloak.events" .  I think I may change
    this so its logged.  Currently only errors are logged to log file.<br>
    <div class="moz-cite-prefix">On 1/13/2016 3:22 PM, Bill Burke wrote:<br>
    </div>
    <blockquote cite="mid:5696B204.3080203@redhat.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      It should be logged.  Search for IMPERSONATE in your log file.<br>
      <br>
      <div class="moz-cite-prefix">On 1/13/2016 3:13 PM, Rajees Patel
        wrote:<br>
      </div>
      <blockquote
        cite="mid:DFE9119B0D4B4A41944385095E86BABF0428DB14@exchange1"
        type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <meta name="Generator" content="Microsoft Word 12 (filtered
          medium)">
        <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
        <div class="WordSection1">
          <p class="MsoNormal">Hi, <o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">For auditing reasons we have a
            requirement that all user actions are logged. <o:p></o:p></p>
          <p class="MsoNormal">If user X is impersonating user Y, is it
            possible that this be logged somewhere? i.e<o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:Consolas;color:black">13

              Jan 2016 16:47:56 INFO User X is impersonating User Y</span> 
            <o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">We are concerned that user X may
            impersonate user Y and perform some malicious actions, and
            we will have no idea that this happened. <o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">Regards<o:p></o:p></p>
          <p class="MsoNormal">Raj<o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <table class="MsoNormalTable" style="width:100.0%" border="0"
            cellpadding="0" cellspacing="0" width="100%">
            <tbody>
              <tr>
                <td style="padding:0cm 0cm 0cm 0cm" valign="top">
                  <div>
                    <p class="MsoNormal" style="line-height:13.0pt"><span
style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#212121">Rajees

                        Patel<o:p></o:p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal" style="line-height:13.0pt"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#212121">Product

                        Architect<o:p></o:p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal" style="line-height:13.0pt"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#616162">Invenco

                        Group Limited<o:p></o:p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal" style="line-height:13.0pt"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#616162;text-transform:uppercase">O:

                        +64 9 905 5673<o:p></o:p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal" style="line-height:13.0pt"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#616162"><a
                          moz-do-not-send="true"
                          href="mailto:Rajees.Patel@invenco.com"><span
                            style="color:blue"></span></a><a
                          moz-do-not-send="true"
                          class="moz-txt-link-abbreviated"
                          href="mailto:Rajees.Patel@invenco.com"><a class="moz-txt-link-abbreviated" href="mailto:Rajees.Patel@invenco.com">Rajees.Patel@invenco.com</a></a></span><o:p></o:p></p>
                  </div>
                  <div>
                    <p class="MsoNormal" style="line-height:2.0pt"><span
style="font-size:2.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#212121"><o:p> </o:p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal" style="line-height:13.0pt"><b><span
style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#212121"><a
                            moz-do-not-send="true"
                            href="http://www.invenco.com"><span
                              style="color:blue"></span></a><a
                            moz-do-not-send="true"
                            class="moz-txt-link-abbreviated"
                            href="http://www.invenco.com"><a class="moz-txt-link-abbreviated" href="http://www.invenco.com">www.invenco.com</a></a></span><o:p></o:p></b></p>
                  </div>
                </td>
              </tr>
              <tr style="height:5.0pt">
                <td style="padding:0cm 0cm 0cm 0cm;height:5.0pt"><br>
                </td>
              </tr>
            </tbody>
          </table>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:&quot;Times New
              Roman&quot;,&quot;serif&quot;;display:none"><o:p> </o:p></span></p>
          <table class="MsoNormalTable"
            style="width:100.0%;border:none;border-top:solid #9E9E9E
            1.0pt" border="1" cellpadding="0" cellspacing="0"
            width="100%">
            <tbody>
              <tr style="height:3.0pt">
                <td style="border:none;padding:0cm 0cm 0cm
                  0cm;height:3.0pt"><br>
                </td>
              </tr>
              <tr style="height:3.0pt">
                <td style="border:none;padding:0cm 0cm 0cm
                  0cm;height:3.0pt">
                  <table class="MsoNormalTable" style="width:100.0%"
                    border="0" cellpadding="0" cellspacing="0"
                    width="100%">
                    <tbody>
                      <tr>
                        <td style="width:225.0pt;padding:0cm 0cm 0cm
                          0cm" valign="top" width="300">
                          <div>
                            <p class="MsoNormal"
                              style="line-height:9.0pt"><b><span
style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#9E9E9E">Disclaimer:

                                  This email is confidential and may be
                                  legally privileged.  If you are not
                                  the intended recipient you must not
                                  use any of the information in it and
                                  must delete the email immediately.<o:p></o:p></span></b></p>
                          </div>
                          <div>
                            <p class="MsoNormal"
                              style="margin-bottom:12.0pt;line-height:9.0pt"><span
style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#9E9E9E"><br>
                                <br>
                                <o:p></o:p></span></p>
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
          <p class="MsoNormal"><o:p> </o:p></p>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
keycloak-user mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://bill.burkecentral.com">http://bill.burkecentral.com</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a class="moz-txt-link-freetext" href="http://bill.burkecentral.com">http://bill.burkecentral.com</a></pre>
  </body>
</html>