|
|
@ -785,16 +785,14 @@ class KeycloakAdmin: |
|
|
|
return self.update_user(user_id=user_id, payload={"enabled": True}) |
|
|
|
|
|
|
|
def disable_all_users(self): |
|
|
|
"""Disable all existing users. |
|
|
|
""" |
|
|
|
"""Disable all existing users.""" |
|
|
|
users = self.get_users() |
|
|
|
for user in users: |
|
|
|
user_id = user["id"] |
|
|
|
self.disable_user(user_id=user_id) |
|
|
|
|
|
|
|
def enable_all_users(self): |
|
|
|
"""Disable all existing users. |
|
|
|
""" |
|
|
|
"""Disable all existing users.""" |
|
|
|
users = self.get_users() |
|
|
|
for user in users: |
|
|
|
user_id = user["id"] |
|
|
|