Sonos Music API > getUserInfo

Sonos uses getUserInfo to request information about the current user identified in the credentials header to provide better user personalization features. See SOAP requests and responses for details about the credentials header.

In your response, only return the current user information whose credentials are supplied in the credentials header.

You must enable the userInfo capability for Sonos to make getUserInfo requests. See Add capabilities for details.

Request parameters



The response contains a getUserInfoResponse object with a getUserInfoResult object comprised of the same fields as the userInfo object:

Name Type Description
userIdHashCode string Your service’s immutable opaque identifier of the user. We strongly urge you to avoid putting any identifying information in this string. For additional security, Sonos does not store this information in its raw form but stores a hash value of this string.
nickname string(32) (Optional) The user’s screen name. If you provide this field, Sonos will use it to pre-fill the account nickname during account setup.

Any other fields that may be in the WSDL are not yet implemented and reserved for future use. Download the WSDL from SOAP requests and responses.

Sample request

Sample response