File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -668,9 +668,9 @@ users_history_resp = descope_client.mgmt.user.history(["user-id-1", "user-id-2"]
668
668
669
669
# ### Set or Expire User Password
670
670
671
- You can set (temporary / active) or expire a user' s password.
672
- Note: When using SetTemporaryPassword password will automatically be set as expired .
673
- The user will not be able log - in using an expired password, and will be required replace it on next login.
671
+ You can set a new active password for a user that they can sign in with .
672
+ You can also set a temporary password that they user will be forced to change on the next login .
673
+ For a user that already has an active password, you can expire their current password, effectively requiring them to change it on the next login.
674
674
675
675
```Python
676
676
@@ -680,9 +680,6 @@ descope_client.mgmt.user.set_temporary_password('<login-id>', '<some-password>')
680
680
# Set a user's password
681
681
descope_client.mgmt.user.set_active_password(' <login-id>' , ' <some-password>' );
682
682
683
- # Set a user's password
684
- descope_client.mgmt.user.set_password(' <login-id>' , ' <some-password>' );
685
-
686
683
# Or alternatively, expire a user password
687
684
descope_client.mgmt.user.expirePassword(' <login-id>' );
688
685
```
You can’t perform that action at this time.
0 commit comments