Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin_disable_user #46

Open
ybenitezf opened this issue Mar 17, 2021 · 1 comment
Open

admin_disable_user #46

ybenitezf opened this issue Mar 17, 2021 · 1 comment

Comments

@ybenitezf
Copy link

admin_disable_user never uses the provided username parameter. It will disable the current user - if any:

    def admin_disable_user(self, username):
        """
        Disable a user
        :param username:
        :return:
        """
        self.client.admin_disable_user(
            UserPoolId=self.user_pool_id,
            Username=self.username,
        )

It should be:

    def admin_disable_user(self, username):
        """
        Disable a user
        :param username:
        :return:
        """
        self.client.admin_disable_user(
            UserPoolId=self.user_pool_id,
            Username=username,
        )
nk9 added a commit to nk9/pycognito that referenced this issue Nov 12, 2022
@nk9
Copy link

nk9 commented Nov 17, 2022

Released in 2022.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants