@MateuszBender-5444 This can be achieved but with no prompt for password change. You need to assign permanent password to the users (without selecting the "change password at next logon" checkbox). Once the users are logged in, they can change password in the portal, provided SSPR (Self Service Password Reset) is enabled.
Please "Accept as answer" wherever the information provided helps you to help others in the community.