Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions warrant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,19 @@ def admin_delete_user(self):
Username=self.username
)

def admin_delete_user_attribute(self, username, attributes):
"""
This method deletes a user attribute with admin role.

:param attributes: A list of strings representing the user attributes
:return: None
"""
self.client.admin_delete_user_attribute(
UserPoolId=self.user_pool_id,
Username=username,
UserAttributeNames=attributes
)

def confirm_forgot_password(self, confirmation_code, password):
"""
Allows a user to enter a code provided when they reset their password
Expand Down