How to Edit Users in Nextcloud
In the top menu bar, select Users from beneath your profile photo.

The user overview opens up and shows all available data fields for editing with a pencil icon next to each one, you can edit freely to make changes as desired.

When finished changing something in any given field of interest, simply confirm.