amazon-archives / amazon-cognito-identity-js

Amazon Cognito Identity SDK for JavaScript
Other
984 stars 454 forks source link

Is there a way to reset any user's password as an admin using developer credentials? #657

Open piyush-gitnub opened 6 years ago

piyush-gitnub commented 6 years ago

I am using Cognito UserPools, I have went through the API's of Cognito. I am not seeing a way to set user's password as Admin ,on behalf of user. We have business use case which needs this.

As per documentation, forgot/reset will send 6 digit confirmation code to user's email. Is there any way to suppress this mail with confirmation code and get this code as a Admin via some other way? We want to send user email on our own.

itrestian commented 6 years ago

This is a capability that is in our backlog of features that we are planning to implement (providing an admin API for setting a user's password to a specific password).

flavioescobar commented 6 years ago

@itrestian Thanks! Any estimate on when this would be available?

flavioescobar commented 6 years ago

@piyush-gitnub Not sure if that would work for you, but we can always delete and recreate users as an admin. It may sound like a "hack" but would allow us to solve this issue while the API doesn't get updated.