All Downloads are FREE. Search and download functionalities are using the official Maven repository.

profiles.input.linkedin.json Maven / Gradle / Ivy

{
	"ver": "2",
	"name": "sys:linkedin",
	"description": "Translation profile for LinkedIn authn",
	"type": "INPUT",
	"rules": [
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapIdentity",
				"parameters": [
					"identifier",
					"attr['id']",
					"sys:all",
					"CREATE_OR_MATCH"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"name",
					"/",
					"(attr contains 'localizedHeadline') ? (attr['localizedHeadline']) : (attr['localizedFirstName'] + ' ' + attr['localizedLastName'])",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"email",
					"/",
					"attrObj.?elements[0]['handle~'].?emailAddress + '[CONFIRMED]'",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"firstname",
					"/",
					"attr['localizedFirstName']",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"surname",
					"/",
					"attr['localizedLastName']",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "attrObj contains 'profilePicture'"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"pictureURL",
					"/",
					"attrObj['profilePicture']['displayImage~']['elements'][0]['identifiers'][0]['identifier']",
					"CREATE_OR_UPDATE"
				]
			}
		}
		
		
	]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy