I would like to configure an instance of Nextcloud to use a designated OAuth2 authentication provider, replacing the current, native authentication.
I wish to preserve the current user accounts and data, only changing the means of authentication.
In the case of OAuth2, are user accounts identified simply by alias, as in the case of normal, local authentication, or are additional fields and data used to identifying each unique user account?
In the former case, it would seem quite feasibly simply to perform a swap, with essentially no disruption, only requiring that the user aliases provisioned on the new authentication server match those currently provisioned in the instance of Nextcloud.
Such straightforward correspondence, one-to-one, of user identities by simple alias, would be the ideal case for migration.
Otherwise, I would need to understand the method of mapping or altering user identifiers.