<%- include('_head.ejs') %>
  User Account

Basic Info

Display Name:   <%= user.account.name %>
Username: <%= user.account.username %>
Tenant ID: <%= user.account.tenantId %>
<% if(photo) { %>

Photo

<% } %> <% if(details) { %>

Microsoft Graph Details

<% Object.keys(details).forEach(key => { if(!key.startsWith("@")) { let displayKey = key.replace(/([A-Z])/g, '$1') displayKey = displayKey.replace(/^./, str => { return str.toUpperCase() }) %> <% } } ) %>
<%= displayKey %>:   <%= details[key] %>
<% } %>
<%- include('_foot.ejs') %>