Found multiple results for "user"

After migrating NS7 to NS8, I can’t add users to any group in the web admin panel. If the user’s username matches the computer name in the domain, the error Found multiple results for "user" is returned when adding the user to the group.

ERROR: Failed to add members [‘user’] to group “group” - Found multiple results for “user”:
CN=user,OU=IT,OU=Domain Users,DC=ad,DC=ufd,DC=local
CN=USER,CN=Computers,DC=ad,DC=ufd,DC=local

Traceback (most recent call last):
File “/home/samba5/.config/actions/alter-user/50alter_user”, line 61, in
subprocess.run(sambatool_cmd + [‘group’, “addmembers”, group, user], stdout=sys.stderr, check=True, text=True)
File “/usr/lib64/python3.11/subprocess.py”, line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘podman’, ‘exec’, ‘-i’, ‘samba-dc’, ‘samba-tool’, ‘group’, ‘addmembers’, ‘group’, ‘user’]’ returned non-zero exit status 255.