question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SPUserProfileProperty: Allow several mapping connections

See original GitHub issue

Details 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:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ykuijscommented, Aug 30, 2018

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.

0reactions
andikruegercommented, Oct 9, 2018

I will push my changes to this branch. Currently I need to setup a new test environment with a minimum of two connections - doh!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found