Migration from ObjectGUID to User Principal Name (UPN)

Nextcloud version (eg, 20.0.5): 25.0.7


We have a nextcloud service in our company with the “LDAP user and group backend” plugin installed, which had default settings when the service was launched. People who logged in to the service have a username after the ObjectGUID attribute.
The problem started when authorization by CAS was enabled using the “SSO & SAML authentication” plugin. The plugin does not use the ObjectGUID attribute for UID mapping.
Is there a tool to migrate users from ObjectGUID to e.g. User Principal Name (UPN)?