title: How to show user profile photo in sharepoint view formatting?
body: <p>I would like to show the photo of a user based on a persons column via view formatting: here is the json snippet:</p>
  <pre><code>{
    &quot;$schema&quot;: &quot;https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json&quot;,
    &quot;hideColumnHeader&quot;: true,
    &quot;rowFormatter&quot;: {
      &quot;elmType&quot;: &quot;img&quot;,
      &quot;attributes&quot;: {
        &quot;src&quot;: &quot;/_layouts/15/userphoto.aspx?size=L&amp;AccountName=[$Person.email]&quot;
      }
    }
  }
  </code></pre>
  <p>Unfortunately it only shows a placeholder picture. It works if I subsitute [$Person.email] by the real mail adress.</p>