SPUserProfileProperty: Allow several mapping connections
See original GitHub issueDetails of the scenario you try and problem that is occurring: Currently we are working with a customer that uses several mapping connections for one User Profile Property.
With the current resource, there is no support to set several mapping connections for one property.
Adding this capability would result in a breaking change. We would have to add a new custom type to make the resource more versatile. I can think of a addition like this:
Current state of resource:
SPUserProfileProperty WorkEmailProperty
{
Name = "WorkEmail2"
Ensure = "Present"
UserProfileService = "User Profile Service Application"
DisplayName = "Work Email"
Type = "Email"
Description = "" #implementation isn't using it yet
PolicySetting = "Mandatory"
PrivacySetting = "Public"
MappingConnectionName = "contoso.com"
MappingPropertyName = "mail"
MappingDirection = "Import"
Length = 10
DisplayOrder =25
IsEventLog =$false
IsVisibleOnEditor=$true
IsVisibleOnViewer = $true
IsUserEditable = $true
IsAlias = $false
IsSearchable = $false
TermStore = ""
TermGroup = ""
TermSet = ""
UserOverridePrivacy = $false
PsDscRunAsCredential = $SetupAccount
}
Proposed change:
SPUserProfileProperty WorkEmailProperty
{
Name = "WorkEmail2"
Ensure = "Present"
UserProfileService = "User Profile Service Application"
DisplayName = "Work Email"
Type = "Email"
Description = "" #implementation isn't using it yet
PolicySetting = "Mandatory"
PrivacySetting = "Public"
Mapping = @(
MSFT_SPUserProfilePropertyMapping {
ConnectionName = "contoso.com"
PropertyName = "mail"
Direction = "Import"
}
)
Length = 10
DisplayOrder =25
IsEventLog =$false
IsVisibleOnEditor=$true
IsVisibleOnViewer = $true
IsUserEditable = $true
IsAlias = $false
IsSearchable = $false
TermStore = ""
TermGroup = ""
TermSet = ""
UserOverridePrivacy = $false
PsDscRunAsCredential = $SetupAccount
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
SharePoint online User Profile add new User Profile Property
hi, i have a requirement of adding new profile properties to sharepoint online user profiles. these properties i need to map with active ......
Read more >Overview of profile synchronization in SharePoint Server ...
Mappings define how SharePoint user profile properties relate to data ... Once user profiles exist, you can let users modify the values of ......
Read more >Mapping and populate the additional user profile ...
I am looking if there is a non-programmatic way to auto populate mobile number property from Active Directory to SharePoint Online User Profile ......
Read more >Sync User Profile Property from Azure AD using PowerShell
Looking for a way to sync user profile property data from Azure AD and SharePoint Online? This tutorial shows you how using PowerShell!...
Read more >SharePoint Online: How to Add New User Profile Property?
Requirement: Create a user profile property in SharePoint Online. ... Click the “Open” button under the “User profiles” section.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @andikrueger I lost track of this issue, my apologies. I agree with you that we should extend this resource. If a mapping exists in SharePoint, which is not in the MSFT_SPUserProfilePropertyMapping array, we should remove it. That way we make sure the exact array is configured in SharePoint.
I will push my changes to this branch. Currently I need to setup a new test environment with a minimum of two connections - doh!