Our model contributes to clarifying how genetic risk factors for autoimmunity interact with the gut microenvironment in the pathogenesis of disease and is particularly fitting for genes, such as PTPN2, that are shared between IBD and RA or SpA. Here, PTPN2 is linked to inflammatory bowel disease.