[Bug] Using deprecated 'credentials' format in JSON representation for user

Related: Adding Custom Credential Type