-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfieldmapping.json
More file actions
86 lines (86 loc) · 4.7 KB
/
Copy pathfieldmapping.json
File metadata and controls
86 lines (86 loc) · 4.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"Version": "v1",
"MappingFields": [
{
"Name": "EmailAddress",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create"
],
"MappingMode": "Complex",
"Value": "\"function getValue(){\\r\\n let email = Person.Accounts.MicrosoftActiveDirectory.mail\\r\\n\\r\\n return email\\r\\n\\r\\n}\\r\\n\\r\\ngetValue()\"",
"UsedInNotifications": false,
"StoreInAccountData": true
}
]
},
{
"Name": "userPrincipalName",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create"
],
"MappingMode": "Complex",
"Value": "\"function getValue(){\\r\\n let email = Person.Accounts.MicrosoftActiveDirectory.userPrincipalName\\r\\n \\r\\n return email\\r\\n\\r\\n}\\r\\n\\r\\ngetValue()\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Username",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create"
],
"MappingMode": "Complex",
"Value": "\"function getValue(){\\r\\n let username = Person.Accounts.MicrosoftActiveDirectory.sAMAccountName\\r\\n\\r\\n let domain = 'DOMAIN\\\\\\\\'\\r\\n\\r\\n return domain + username\\r\\n\\r\\n}\\r\\n\\r\\ngetValue()\"",
"UsedInNotifications": false,
"StoreInAccountData": true
}
]
},
{
"Name": "UserSecurityID",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create"
],
"MappingMode": "Fixed",
"Value": "\"\"",
"UsedInNotifications": false,
"StoreInAccountData": true
}
]
},
{
"Name": "FullName",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create"
],
"MappingMode": "Complex",
"Value": "\"// Please enter the mapping logic to generate the commonName based on name convention.\\r\\nfunction generateDisplayName() {\\r\\n\\tlet firstName = Person.Name.NickName;\\r\\n\\tlet middleName = Person.Name.FamilyNamePrefix;\\r\\n\\tlet lastName = Person.Name.FamilyName;\\r\\n\\tlet middleNamePartner = Person.Name.FamilyNamePartnerPrefix;\\r\\n\\tlet lastNamePartner = Person.Name.FamilyNamePartner;\\r\\n let nameFormatted = '';\\r\\n\\r\\n\\tswitch(Person.Name.Convention) {\\r\\n\\t\\tcase 'B':\\r\\n nameFormatted = firstName\\r\\n if (typeof middleName !== 'undefined' && middleName) { nameFormatted = nameFormatted + ' ' + middleName }\\r\\n nameFormatted = nameFormatted + ' ' + lastName\\r\\n\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\tcase 'BP':\\r\\n nameFormatted = firstName\\r\\n if (typeof middleName !== 'undefined' && middleName) { nameFormatted = nameFormatted + ' ' + middleName }\\r\\n nameFormatted = nameFormatted + ' ' + lastName + ' -'\\r\\n if (typeof middleNamePartner !== 'undefined' && middleNamePartner) { nameFormatted = nameFormatted + ' ' + middleNamePartner }\\r\\n nameFormatted = nameFormatted + ' ' + lastNamePartner\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\tcase 'P':\\r\\n nameFormatted = firstName\\r\\n if (typeof middleNamePartner !== 'undefined' && middleNamePartner) { nameFormatted = nameFormatted + ' ' + middleNamePartner }\\r\\n nameFormatted = nameFormatted + ' ' + lastNamePartner\\r\\n\\t\\t break;\\r\\n\\t\\tcase 'PB':\\r\\n nameFormatted = firstName\\r\\n if (typeof middleNamePartner !== 'undefined' && middleNamePartner) { nameFormatted = nameFormatted + ' ' + middleNamePartner }\\r\\n nameFormatted = nameFormatted + ' ' + lastNamePartner + ' -'\\r\\n if (typeof middleName !== 'undefined' && middleName) { nameFormatted = nameFormatted + ' ' + middleName }\\r\\n nameFormatted = nameFormatted + ' ' + lastName\\r\\n\\t\\t break;\\r\\n\\t\\tdefault:\\r\\n nameFormatted = firstName\\r\\n if (typeof middleName !== 'undefined' && middleName) { nameFormatted = nameFormatted + ' ' + middleName }\\r\\n nameFormatted = nameFormatted + ' ' + lastName\\r\\n\\t\\t\\tbreak;\\r\\n\\t}\\r\\n\\r\\n\\tconst displayName = nameFormatted;\\r\\n\\r\\n\\treturn displayName;\\r\\n}\\r\\n\\r\\ngenerateDisplayName();\\r\\n\\r\\n\"",
"UsedInNotifications": false,
"StoreInAccountData": true
}
]
}
],
"UniqueFieldNames": []
}