<p>Password hashes aren't included in the default user query for security reasons, but if you want to force them to get added, you could use:</p>

<pre><code>{% for user in craft.users().status(null).addSelect(['users.password']).all() %}
</code></pre>

CC BY-SA 4.0
2020-02-13T19:06:26.460Z
I also need to migrate 800+ users and passwords from C2 to C3. I've got the following but password is blank each time. ```{% for user in craft.users.group('publicUsers').addSelect(['users.password']) %}
  <password>{{ user.password }}</password>
{% endfor %}```
CreateSean
CC BY-SA 4.0
2021-03-22T12:47:21.190Z
@CreateSean did you figure this out?
dmatthams
CC BY-SA 4.0
2019-06-17T23:40:47.943Z
2019-06-17T23:40:47.943Z
Brad Bell
<p>Is it possible to move users along with their passwords? I can see the mapping option, but how do I output password in a template (I'm moving data between craft installations). </p>

<p>The below code does not work.</p>

<pre><code>{% for user in craft.users().status(null).all() %}
    &lt;password&gt;{{user.password}}&lt;/password&gt;
{% endfor %}
</code></pre>

<users><password><plugin-feedme>
Move users with Feed Me
# Move users with Feed Me

(Asked by: username_0 on 2019-06-17)

Is it possible to move users along with their passwords? I can see the mapping option, but how do I output password in a template (I'm moving data between craft installations). 
The below code does not work.
{% for user in craft.users().status(null).all() %}
    {{user.password}}
{% endfor %}

**Tags:** users, password, plugin-feedme

---

## 1 answers

### Answer by username_1 on 2019-06-17. Score: 0 | Accepted answer

Password hashes aren't included in the default user query for security reasons, but if you want to force them to get added, you could use:
{% for user in craft.users().status(null).addSelect(['users.password']).all() %}

> **Comments:**
> **username_2**: I also need to migrate 800+ users and passwords from C2 to C3. I've got the following but password is blank each time. ```{% for user in craft.users.group('publicUsers').addSelect(['users.password']) %}   <password>{{ user.password }}</password> {% endfor %}```  
> **username_3**: @CreateSean did you figure this out?  

---

