Skip to main content

HelloID

Use shared fields in a dependent system

Note

Prerequisite: Share a field and then Make a system dependent

Shared fields become available in Complex mappings, using the syntax Person.Accounts.<SharedSystemIdentifier>.<SharedFieldName>. For example, Person.Accounts.PowerShell.UserName.

function generateUserName() {
	const domain = 't4etest.onmicrosoft.com';
	let userName = Person.Accounts.PowerShell.UserName;
	return userName + '@' + domain;
}

generateUserName();
2023-12-08_12-22-17.jpg

Note

Prerequisite: Share a field and then Make a system dependent

Shared fields become available as Field mappings in the Target mappings of dependent Azure AD target systems:

2022-05-06_13-08-36.png

To use them, Map fields.

Caution

If you're sharing fields from a PowerShell v1 or v2 target system to an Azure AD target system, shared fields will not appear as Field mappings. In this case, you must use Complex mappings using the syntax Person.Accounts.<SharedSystemIdentifier>.<SharedFieldName>. For example:

function generateUserName() {
	const domain = 't4etest.onmicrosoft.com';
	let userName = Person.Accounts.PowerShellTarget.UserName;
	return userName + '@' + domain;
}

generateUserName();
2022-09-09_14-58-15.jpg

Note

Prerequisite: Share a field and then Make a system dependent

For dependent PowerShell target systems, shared fields are now accessible in Account scripts using the syntax $p.Accounts.<SharedSystemIdentifier>.<SharedFieldName>. For example, $p.Accounts.MicrosoftAzureAD.UserPrincipalName.

2022-05-06_13-34-35.png

Note

Prerequisite: Share a field and then Make a system dependent

Shared fields become available in Complex mappings using the syntax Person.Accounts.<SharedSystemIdentifier>.<SharedFieldName>. For example, Person.Accounts.MicrosoftActiveDirectory.SamAccountName.

2023-11-17_11-46-57.jpg

Shared fields are also available in Account scripts using $personContext.Person.Accounts.<SharedSystemIdentifier>.<SharedFieldName>. For example, $personContext.Person.Accounts.MicrosoftActiveDirectory.SamAccountName.

2023-11-17_11-45-10.jpg