The groupId read-only property of the MediaDeviceInfo interface returns a string that is a group identifier.
groupId
MDN Reference