<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How do you reset a user&#x27;s password upon their first login?]]></title><description><![CDATA[<p dir="auto">Is it possible to set all users to have the <strong><strong>passwordChangeRequired</strong></strong> status set to <strong><strong>true</strong></strong> by default, so they are forced to reset their password upon their first login? Additionally, can we set a default password format as <strong>company{username}</strong>? For example, a user with the username <strong>1234</strong> would have the default password <strong>company1234</strong>.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2816/how-do-you-reset-a-user-s-password-upon-their-first-login</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 08:59:01 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2816.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Dec 2024 19:03:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do you reset a user&#x27;s password upon their first login? on Fri, 20 Dec 2024 21:06:47 GMT]]></title><description><![CDATA[<p dir="auto">Yes, this can be achieved using the FusionAuth API. Here's how you can implement it:</p>
<ul>
<li><strong>Set the default password for each user:</strong><br />
Use the POST /api/user/change-password endpoint to set the user's password to the desired format, e.g., company1234. Refer to the "Change a User's Password using an email address or username" section of the FusionAuth documentation. This allows you to update a user's password in a single API call without requiring the Forgot Password flow.</li>
<li><strong>Require the user to change their password:</strong><br />
Use the PATCH /api/user/{userId} endpoint to set the passwordChangeRequired field to true. This ensures that the user will be prompted to change their password upon their next login.</li>
</ul>
<p dir="auto"><strong>API Documentation for reference:</strong></p>
<ul>
<li><a href="https://fusionauth.io/docs/apis/users#change-a-users-password" rel="nofollow ugc">Change a User’s Password</a></li>
<li><a href="https://fusionauth.io/docs/apis/users#update-a-user" rel="nofollow ugc">Update a User</a></li>
</ul>
<p dir="auto"><strong>Optional Customization:</strong><br />
To guide users on the login page to use the default password format, you can customize the messaging through FusionAuth Themes:</p>
<ul>
<li>Navigate to <strong>Simple Theme &gt; Messages &gt; Default</strong>.</li>
<li>Add a custom message, such as <strong>password=Password is company+username</strong>, to inform users of the default password structure.</li>
</ul>
]]></description><link>https://fusionauth.io/community/forum/post/7657</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7657</guid><dc:creator><![CDATA[wesley]]></dc:creator><pubDate>Fri, 20 Dec 2024 21:06:47 GMT</pubDate></item></channel></rss>