Set up external storages

I didn’t understand what I’m doing wrong. my doubt is the credentials. which user should they be?

If you are using SMB / CIFS, then it is the user that has been setup on the SAMBA (SMB/CIFS) Server to be allowed access to the selected resource.
These user credentials are independent from Nextcloud.