79cb65616bd94eb1616b17f8a75ac5e973469e56Matthias Tristl{
4b3769ce483ece06f60f983193712492b920144fJake Feasel "mappings" : [
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "name" : "systemHrdb_managedUser",
db4f02cbee52b92fd37a39aeee44dcd2272bc99cAlin Brici "source" : "system/hrdb/account",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "managed/user",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "properties" : [
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "email",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "mail"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "uid",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "userName"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "lastName",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "sn"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "organization",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "organization"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "firstName",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "givenName"
185941104719f48494a107996e17a23aad237c7dJon Branch },
185941104719f48494a107996e17a23aad237c7dJon Branch {
185941104719f48494a107996e17a23aad237c7dJon Branch "source" : "cars",
185941104719f48494a107996e17a23aad237c7dJon Branch "target" : "cars"
4b3769ce483ece06f60f983193712492b920144fJake Feasel }
4b3769ce483ece06f60f983193712492b920144fJake Feasel ],
4b3769ce483ece06f60f983193712492b920144fJake Feasel "policies" : [
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "CONFIRMED",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "UPDATE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "FOUND",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "UPDATE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "ABSENT",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "CREATE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "AMBIGUOUS",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "EXCEPTION"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "MISSING",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "UNLINK"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "SOURCE_MISSING",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "DELETE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "UNQUALIFIED",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "IGNORE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "UNASSIGNED",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "IGNORE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel }
4b3769ce483ece06f60f983193712492b920144fJake Feasel ]
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "name" : "managedUser_systemHrdb",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "managed/user",
db4f02cbee52b92fd37a39aeee44dcd2272bc99cAlin Brici "target" : "system/hrdb/account",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "links" : "systemHrdb_managedUser",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "correlationQuery" : {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "type" : "text/javascript",
39d358fb2513d1778bf553a72f93aa46b3e417fcJake Feasel "source" : "({'_queryFilter': 'uid eq \"' + source.userName + '\"'});"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
185941104719f48494a107996e17a23aad237c7dJon Branch "onCreate" : {
185941104719f48494a107996e17a23aad237c7dJon Branch "type" : "text/javascript",
185941104719f48494a107996e17a23aad237c7dJon Branch "source" : "logger.info(\"Creating new user in external repo\")"
185941104719f48494a107996e17a23aad237c7dJon Branch },
185941104719f48494a107996e17a23aad237c7dJon Branch "onUpdate" : {
185941104719f48494a107996e17a23aad237c7dJon Branch "type" : "text/javascript",
185941104719f48494a107996e17a23aad237c7dJon Branch "source" : "logger.info(\"Updating existing user in external repo\")"
185941104719f48494a107996e17a23aad237c7dJon Branch },
4b3769ce483ece06f60f983193712492b920144fJake Feasel "properties" : [
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "userName",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "uid"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "password",
2d70128fa302f0585ffdf2bb6b9b0806fdf5fefbJake Feasel "transform" : {
2d70128fa302f0585ffdf2bb6b9b0806fdf5fefbJake Feasel "type" : "text/javascript",
2d70128fa302f0585ffdf2bb6b9b0806fdf5fefbJake Feasel "source" : "openidm.decrypt(source);"
2d70128fa302f0585ffdf2bb6b9b0806fdf5fefbJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel "condition" : {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "type" : "text/javascript",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "object.password != null"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "password"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "givenName",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "firstName"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "sn",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "lastName"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source": "",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "transform" : {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "type" : "text/javascript",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "source.givenName + ' ' + source.sn"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "fullName"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "mail",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "email"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "source" : "organization",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "target" : "organization",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "default" : "IDM"
185941104719f48494a107996e17a23aad237c7dJon Branch },
185941104719f48494a107996e17a23aad237c7dJon Branch {
185941104719f48494a107996e17a23aad237c7dJon Branch "source" : "cars",
185941104719f48494a107996e17a23aad237c7dJon Branch "target" : "cars"
4b3769ce483ece06f60f983193712492b920144fJake Feasel }
4b3769ce483ece06f60f983193712492b920144fJake Feasel ],
4b3769ce483ece06f60f983193712492b920144fJake Feasel "policies" : [
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "CONFIRMED",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "UPDATE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "FOUND",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "UPDATE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "ABSENT",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "CREATE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel },
4b3769ce483ece06f60f983193712492b920144fJake Feasel {
4b3769ce483ece06f60f983193712492b920144fJake Feasel "situation" : "SOURCE_MISSING",
4b3769ce483ece06f60f983193712492b920144fJake Feasel "action" : "DELETE"
4b3769ce483ece06f60f983193712492b920144fJake Feasel }
4b3769ce483ece06f60f983193712492b920144fJake Feasel ]
4b3769ce483ece06f60f983193712492b920144fJake Feasel }
4b3769ce483ece06f60f983193712492b920144fJake Feasel ]
79cb65616bd94eb1616b17f8a75ac5e973469e56Matthias Tristl}