Allow id mapping to be composed of custom attributes