There is not much out there about MIM and SharePoint 2016 with FBA or SAML user profiles. Using Active Directory Import is still the same as it was in 2013. Below we will be going through how to set this up for SAML(ADFS) and MIM. This guide assumes the environment has been setup from these steps at https://technet.microsoft.com/en-us/library/mt637055(v=office.16).aspx
Why should we do this?
The account name for user profiles are important and what is used to get the profile. Windows Authentication user profiles are just “domain\username” for the account name. When SAML or FBA users invoke the user profiles, the profile service will search for the complete claim(example: “i:05.t|adfs30|User1”). If the user profile is not there, a stub profile will be created. This will give the user two profiles. The main one with SAML/FBA will NOT be sync’d since we would need configure MIM know the claim prefix.
1.Open MIM client then Metaverse Designer. Select “person” then “Add Attribute”.
New Attribute button.
Type in “SPS-ClaimID” for Attribute Name
Click OK
2. Open the ADMA then Configure Attribute Flow. Select user/person
a.Map your Claim identifier for your SAML users to SPS-ClaimID. The direction should be Import and Direct.
b.Click “New”.
Find SPS-ClaimProviderType and SPS-ClaimProviderID in MetaVerse object type. Below is PowerShell to find your SAML Identity Claim.
$tips = Get-SPTrustedIdentityTokenIssuer
foreach($tip in $tips)
{
$name = $tip.Name
$claims = $tip.ClaimTypeInformation
foreach($claim in $claims)
{
If($claim.IsIdentityClaim -eq $true)
{
Write-Host -ForegroundColor DarkGreen “The Identity Claim is listed below for $name“
$claim } }}
Select “Advanced” for “Mapping type” and “Import” for Direction. Click New.
The constant value SPS-ClaimProviderID will be the name of your SAML provider when you created it.
SPS-ClaimProviderType will be “Trusted” if you’re using a Trusted provider.
3.Open SharePoint MA(SPMA). Click on Select Attributes. Check the box for SPS-ClaimID.
4.Configure Attribute Flow. Select user/person.
a.Map SPS-ClaimID to SPS-ClaimID. The direction will be export and Direct. Click new.
I’m using UPN for my environment. This will be the identifier claim which could be email or samaccountname(see above for PowerShell).
Many farms are moving from Windows Authentication(NTLM or Kerberos) to SAML. This migration and change requires a lot of planning. This guide is only to give a frame work of migrating some of the simpler farms. This guide also assumes that the ADFS server is already setup and just needs to be configured.
The difference of this guide and other guides are two things. We will be using the -UseDefaultConfiguration when created the trusted identity token issuer. This will give us an OOB claims provider instead of having your farm fending for itself with the people picker/claim provider. The next difference is the user and group migrations. We will be using Convert-SPWebapplication instead of developing a script to use Move-SPUser. More details later in the post about both of these.
Requirements:
The SharePoint farm has to be at June 2014 CU (or higher) for SharePoint 2013(15.0.4623.1001).
The web applications must be Windows Claims. SAML is not supported on classic.
ADFS must be backed with the same Active Directory used in Windows Claims.
Steps to be completed:
Configure ADFS
Creating Trusted Identity Provider
Migrate Users and Groups
Config ADFS
As stated above we assume the ADFS server is setup and connected to AD and ready to configure the Relying Party Trusts.
In AD FS, right click Relying Party Trusts and select Add Relying Party Trust.
This will bring up Add Relying Party Trust Wizard. Click Start
Click Enter data about the relying party manually, Next.
Type in a display name and description(optional). Click Next.
We want to select AD FS 1.0 and 1.1 profile since SharePoint does not support anything but SAML 1.1.
We will need to enter in the web application with /_trust. This will need to be HTTPS.
We will need to add in the realm for an identifier. I entered in urn:sp13:contoso. We will be using this on the SharePoint side.
I’m not using Multi-factor so just clicking Next
We’re permitting everybody through. Click Next
Click Next
Click Close and leave the box checked. We will be mapping claims.
In the Issuance Transform Rules, click Add Rule…
Leave the drop down value at Send LDAP Attributes as Claims. Click Next
Give the claim rule a name. Select Active Directory from the dropdown.
We will only be mapping the required fields here. The first one we will map is your identifier claim. This is the claim that a user needs to have in AD to sign in. The only choices Account-Name, Email or USER-PRINCIPAL-NAME. Adjust your guide as needed. I will be using Email. The only other Claim is for security groups.
LDAP Attribute
Outgoing Claim Type
User-Principal-Name
UPN
E-Mail-Address
E-Mail Address
SAM-Account-Name
Windows account name
Token-Groups as SIDs
Group SID
We will need the Token-sign certificate from ADFS. Click on Certificates, then click on the token-signing certificate, then View Certificate
Click on Details tab and Copy to File…
DER .CER is the file format we want. Click Next
Give the file a name and location. Click Next
Click Finish. Copy the certificate to the SharePoint server.
Creating Trusted Identity Provider
On the SharePoint server, open PowerShell ISE. We will be loading the SharePoint module using Add-PSSnapin *sharepoint*
This is to set the path of the token signing certificate we got from ADFS
5. Associate the new trusted provider to your web application(s). In central admin, select Application Management, then Manage web applications. Select your web application, then Authentication Providers. For each zone, select Windows Authentication and Trust Identity provider. Both are required for the migration.
Migrate Users and Groups
The migration of users and groups are very similar to the migration scripts with a difference of the groups. The groups will change from Windows claim + SID to ADFS + SID. Other migrations are passing the unqualified name through the SAML token. The claim provider that is provisioned will not show you the SID just like Windows does either.
The PowerShell we will be running is Convert-SPWebApplication.
We use cookies and process personal data to make our site work, for analytics, and for ads personalization. Some of this data is shared with our partners. Open the preferences panel to see which services we use and choose what you allow.
Contains information related to marketing campaigns of the user. These are shared with Google AdWords / Google Ads when the Google Ads and Google Analytics accounts are linked together.
90 days
__utma
ID used to identify users and sessions
2 years after last activity
__utmt
Used to monitor number of Google Analytics server requests
10 minutes
__utmb
Used to distinguish new sessions and visits. This cookie is set when the GA.js javascript library is loaded and there is no existing __utmb cookie. The cookie is updated every time data is sent to the Google Analytics server.
30 minutes after last activity
__utmc
Used only with old Urchin versions of Google Analytics and not with GA.js. Was used to distinguish between new sessions and visits at the end of a session.
End of session (browser)
__utmz
Contains information about the traffic source or campaign that directed user to the website. The cookie is set when the GA.js javascript is loaded and updated when data is sent to the Google Anaytics server
6 months after last activity
__utmv
Contains custom information set by the web developer via the _setCustomVar method in Google Analytics. This cookie is updated every time new data is sent to the Google Analytics server.
2 years after last activity
__utmx
Used to determine whether a user is included in an A / B or Multivariate test.
18 months
_ga
ID used to identify users
2 years
_gali
Used by Google Analytics to determine which links on a page are being clicked
30 seconds
_ga_
ID used to identify users
2 years
_gid
ID used to identify users for 24 hours after last activity
24 hours
_gat
Used to monitor number of Google Analytics server requests when using Google Tag Manager
1 minute
Jetpack's built-in visitor analytics. It records page views, referring sites, search terms, and outbound link clicks, and also carries the shared visitor-tracking library used by Jetpack Instant Search and WooCommerce Analytics.