diff --git a/server/src/uds/auths/InternalDB/Authenticator.py b/server/src/uds/auths/InternalDB/Authenticator.py index 9c5a8dfb..2d05a0bd 100644 --- a/server/src/uds/auths/InternalDB/Authenticator.py +++ b/server/src/uds/auths/InternalDB/Authenticator.py @@ -82,10 +82,12 @@ class InternalDBAuth(Authenticator): # and access will be denied try: usr = auth.users.get(name=username, state=State.ACTIVE) + groups = usr.groups.all() usr.id = None if usr.real_name.strip() == '': usr.real_name = usr.name usr.name = newUsername + usr.groups = groups usr.save() except: logger.exception('Exception')