reset_pwds.py exculde ddadmin user

darta 2021-06-01 12:42:34 +00:00
parent d2f0f66805
commit bda5fbca6e
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class KeycloakClient():
users=self.get_users_with_groups_and_roles() users=self.get_users_with_groups_and_roles()
userupdate=[] userupdate=[]
for u in users: for u in users:
if u['username'] not in ['admin'] and not u['username'].startswith('system_'): if u['username'] not in ['admin','ddadmin'] and not u['username'].startswith('system_'):
print('Generating password for user '+u['username']) print('Generating password for user '+u['username'])
userupdate.append({'id':u['id'], userupdate.append({'id':u['id'],
'username':u['username'], 'username':u['username'],
@ -132,4 +132,4 @@ class KeycloakClient():
return list_dict_users return list_dict_users
k=KeycloakClient() k=KeycloakClient()
k.update_pwds() k.update_pwds()