The Role Mapping information is stored in the idm_providers_config table inside of the Semarchy repository. You will see one record per IDP configuration. Inside the column idps_payload you will find a JSON formatted value. You can extract the role mapping from the JSON. 


Here is an example 


{"formBasedLoginIdPs":[{"type":"internal","defaultRoles":["semarchyConnect"],"userProfileSettings":{"FIRST_NAME":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"LAST_NAME":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"EMAIL_ADDRESS":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"PRIMARY_PHONE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"SECONDARY_PHONE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"JOB_TITLE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DEPARTMENT":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"COMPANY_NAME":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"ADDRESS":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"CITY":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"COUNTRY":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"POSTAL_CODE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"AVATAR_IMAGE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"LANGUAGE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"TIMEZONE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DATE_FORMAT":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DATE_TIME_FORMAT":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DECIMAL_SEPARATOR":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"THOUSAND_SEPARATOR":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DENSITY_MODE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null}},"enabled":true,"name":"INTERNAL_IDP"}],"ssoBasedLoginIdPs":[{"type":"saml","defaultRoles":["semarchyConnect"],"roleMapping":{"entries":[{"sourceRoleOrRegex":"test","targetRolesOrReplacementString":"datasteward","regexMapping":false}],"shouldKeepIdPRoles":true},"serviceSettings":{"authnRequestSignaturePublicKey":null,"authnRequestSignaturePrivateKey":null,"authnRequestSignatureAlgoType":"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256","assertionEncryptionPublicKey":null,"assertionDecryptionPrivateKey":null,"idpEntityId":"https://fujifish.github.io/samling/samling.html","webSsoEndpoint":"https://fujifish.github.io/samling/samling.html","responseSignaturePublicKey":{"type":"INTERNAL","data":"localkeystore:N0FnSXFPbUlQSlI5djdDVHJUMCt4VGNIb2pSUEZnQU42T1JyVXpEbFJmN2kzOFZ2RjVOMExySDU4NzhCVDFXeW5yN3c0MnJCZDJnSzd3MFU=:RDRxcHIxK3Fib2x0dGJISVBvOVEvZ096M3MzOGM0L0RIeE1jOTQxYWkzUWdvMDZIOVhHZjFRWTVNc0I2dzhXc1BPZ3pibzRXdU51ZmlQUXFPdURDd1NGamxVUCtSOElnSkRiQnNnUldSdER5SlhSSmNxNHJCa3BXUXVGWVNVdE9DdTVmOWhzL0s4V3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nYxd1ZXR1NmWWQ4RkliOFhOWUhwYnROTUYvSzlXM01RTlNMaEQvVzNvU3Nha3BxSzd0aUlDWVhXcTdyRlFDYlZmWngwdmdUL0hpOGZKdHhoVW5iNFN4RUxWTlQvUGRZS3B5SVhVY3RYdEtRekhvNnNYKzJoSXd0azV5VUtwRXZGZ3Brck1xZGhZbGlNdmZLS0xreVFCSnF6NWZ6ejE3WTdpQXM5THNmSjRFaFlqNGhCb0tSVjI4S0FXU0J6ZGIzSkFoL053K1Z0TGY5N01tSWVPTjI4MTg3RHp0L1loTm1FKzlMMVVjbVNYdzQrNlJSK2x4T1pXRkpSTFJhSDJQTUdxR0dpNyttb3Z3RjdJOG1GVkpCdm9IS2J5c0VoVE5wSWNEVzNaMFUrcGc1YUVobm5KTFltU2RWK3JiM2dTSlRZSmNDdWUrL25FSVpKeGhsYXl4WWJqdkVSd2lMRmF0MXBDNDBQNS9CbFpsbDZEdG12SGF0QlFPY3luMFp5bnA2WUgxR0Vqanl3PT0="},"logoutUrl":null,"idpMetadataUrl":null,"userRolesAttributeName":"<groups>","userRolesStringDelimiter":",","nameIDFormatType":"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified","protocolBindingType":"POST","authnContextClassRefType":null,"maxClockSkew":10,"connectUsingIdpMetadataEnabled":false,"authnRequestSignatureEnabled":false},"loginButton":{"label":"SAML","color":null,"iconUrl":null},"userProfileSettings":{"FIRST_NAME":{"userAccessMode":"READ","synchronizationMode":"EACH_LOGIN","defaultValue":null,"synchronizedFrom":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"},"LAST_NAME":{"userAccessMode":"READ","synchronizationMode":"EACH_LOGIN","defaultValue":null,"synchronizedFrom":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"},"EMAIL_ADDRESS":{"userAccessMode":"READ","synchronizationMode":"EACH_LOGIN","defaultValue":null,"synchronizedFrom":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"},"PRIMARY_PHONE":{"userAccessMode":"READ","synchronizationMode":"EACH_LOGIN","defaultValue":null,"synchronizedFrom":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobilephone"},"SECONDARY_PHONE":{"userAccessMode":"READ","synchronizationMode":"EACH_LOGIN","defaultValue":null,"synchronizedFrom":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/otherphone"},"JOB_TITLE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DEPARTMENT":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"COMPANY_NAME":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"ADDRESS":{"userAccessMode":"READ","synchronizationMode":"EACH_LOGIN","defaultValue":null,"synchronizedFrom":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/streetaddress"},"CITY":{"userAccessMode":"READ","synchronizationMode":"EACH_LOGIN","defaultValue":null,"synchronizedFrom":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/locality"},"COUNTRY":{"userAccessMode":"READ","synchronizationMode":"EACH_LOGIN","defaultValue":null,"synchronizedFrom":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country"},"POSTAL_CODE":{"userAccessMode":"READ","synchronizationMode":"EACH_LOGIN","defaultValue":null,"synchronizedFrom":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode"},"AVATAR_IMAGE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"LANGUAGE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"TIMEZONE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DATE_FORMAT":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DATE_TIME_FORMAT":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DECIMAL_SEPARATOR":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"THOUSAND_SEPARATOR":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null},"DENSITY_MODE":{"userAccessMode":"READ_WRITE","synchronizationMode":"NEVER","defaultValue":null,"synchronizedFrom":null}},"enabled":false,"name":"SAML"}]}


Look for 

roleMapping":{"entries":[{"sourceRoleOrRegex":"test","targetRolesOrReplacementString":"datasteward","regexMapping":false}],"shouldKeepIdPRoles":true},"serviceSettings":