Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<?xml version="1.0" encoding="utf-8" ?>
<UserSyncConfig>
	<SqlSyncSource name="Sql" queryKey="OneOffixxIdentifier">
        <ConnectionString>Data Source=sqlserver.local;Initial Catalog=SampleData;User ID=user;Password=pw;Encrypt=False</ConnectionString>
        <ConnectionProvider>System.Data.SqlClient</ConnectionProvider>
		<Query>SELECT [givenname],[surname], [email] FROM [Table] WHERE UserId = @queryKey</Query>
		
		<!-- Optional: Result Mapping Syntax is supported -->
        <ResultMapping>
            <Mapping>
                <Map Source="email" Target="fromMappingEMail" />
            </Mapping>
        </ResultMapping>		
		
		<!-- Claim Mapping - column names are property names-->
        <Claims>
            <Claim type="http://schema.oneoffixx.com/ws/2011/01/identity/claims/givenname" ignoreClaimIfEmpty="true" property="givenname" />
            <Claim type="http://schema.oneoffixx.com/ws/2011/01/identity/claims/surname" ignoreClaimIfEmpty="true" property="surname" />
			<Claim type="http://schema.oneoffixx.com/ws/2011/01/identity/claims/email" ignoreClaimIfEmpty="true" property="fromMappingEMail" />
        </Claims>  
    </CsvSyncSource>SqlSyncSource>
</UserSyncConfig>