3
votes

I have Sharepoint 2010 using as the only authentication method a custom claims provider. My custom claims provider has a email claim: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress

I set this parameter on theshareponit console (stsadmin) when configuring the provider:

$map3 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName "EmailAddress" -SameAsIncoming

I want to see this claims mapped to the Sharepoint user profile. That means that when I access the user profile (clicking on "my settings" on the logged user for example) I would like to see the email parameter. (I would like to see the claim as a SPContext.Current.Web.CurrentUser.Email)

At this moment, those parameters are not mapped.

Any tip / help with that? I'm really trying lot of several things but I can't get it to work!..

Thanks!..

PnP

1
Any solution for this?Abel Garcia

1 Answers

1
votes

The code you're showing will only assign the mapping to a variable ($map3). You also need to add that mapping to the trusted issuer:

$sp = Get-SPTrustedIdentityProvider –Name "YourSTS"

Add-SPClaimTypeMapping -Identity $map3 -TrustedIdentityTokenIssuer $sp

Here is some more info and examples:

EDIT: To then map the claims, you need to go to Central Administration -> Application Management -> User Profile Service Application -> Manage User Properties -> Edit the Desired User Property.

Finally, edit the mapping as shown below:

enter image description here

Here is more info: http://technet.microsoft.com/en-us/library/cc262327.aspx