Answers.Body: <p>If this is from Twig, it would be:</p>
  <pre><code>{{ user.firstName }}
  {{ user.lastName }}
  {{ user.photo }}
  </code></pre>
  <p>I'm 90% sure that <code>user.password</code> isn't exposed to Twig by default (for security reasons), but there are ways around that if you really need to expose the password hash to a template.</p>
  <p>Note that first and last names are string, but the photo is an instance of  <code>craft\elements\Asset</code>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-02T15:59:09.930Z
Answers.Text: I appreciate the answer. Is there a reference somewhere would I could have found this out myself without posting a question? Appreciate any direction. I seem to have this problem often with Craft.
Answers.UserDisplayName: Mosswalker
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-02T22:17:52.540Z
Answers.Text: firstName and lastName are properties on the User element: https://craftcms.com/docs/3.x/users.html#firstname and https://craftcms.com/docs/3.x/users.html#lastname. photo is a bit of an edge case, so you'd have to go to the class reference for that https://docs.craftcms.com/api/v3/craft-elements-user.html#method-getphoto
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-02T00:22:47.063Z
Answers.LastActivityDate: 2021-03-02T08:18:09.613Z
Answers.LastEditDate: 2021-03-02T08:18:09.613Z
Answers.UserDisplayName: Brad Bell
Body: <p>The online documentation states:</p>
  <blockquote>
  <p>Each user has an email address and username by default, and optional fields for a name, photo, and password.</p>
  </blockquote>
  <p>Excuse the dumb question, but where do I find the what the names of those fields are? I feel like I'm missing something.</p>
  
Tags: <users>
Title: User field names?
ThreadText: # User field names?
  
  (Asked by: username_0 on 2021-03-01)
  
  The online documentation states:
  
  > Each user has an email address and username by default, and optional fields for a name, photo, and password.
  
  Excuse the dumb question, but where do I find the what the names of those fields are? I feel like I'm missing something.
  
  **Tags:** users
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-03-02. Score: 2 | Accepted answer
  
  If this is from Twig, it would be:
  
  ```
  {{ user.firstName }}
  {{ user.lastName }}
  {{ user.photo }}
  
  ```
  
  I'm 90% sure that `user.password` isn't exposed to Twig by default (for security reasons), but there are ways around that if you really need to expose the password hash to a template.
  
  Note that first and last names are string, but the photo is an instance of `craft\elements\Asset`.
  
  > **Comments:**
  > **username_0**: I appreciate the answer. Is there a reference somewhere would I could have found this out myself without posting a question? Appreciate any direction. I seem to have this problem often with Craft.  
  > **username_1**: firstName and lastName are properties on the User element: https://craftcms.com/docs/3.x/users.html#firstname and https://craftcms.com/docs/3.x/users.html#lastname. photo is a bit of an edge case, so you'd have to go to the class reference for that https://docs.craftcms.com/api/v3/craft-elements-user.html#method-getphoto  
  
  ---
  
  