Thursday, May 16, 2013

Incoming claim types do not include Claim Type... error message in SharePoint 2010

I was working with my SharePoint development environment and I had to add new Claim Mappings to my SharePoint Server based on some new Claims that I was sending from ADFS.

One of my options was to completely remove the SP-TrustedIdentityTokenIssuer and then completely re-create it with the new Claim Mappings, but that was a bit of a hassle, so I searched for other ways to simply add new Claim Mappings.

I found a partial answer here: http://blogs.dirteam.com/blogs/tomek/archive/2010/07/14/adding-claim-mapping-to-existing-provider-in-sps-2010-part-deux.aspx

However, as soon as I followed the instructions that were provided in the article, I received the following error message: Add-SPClaimTypeMapping: Incoming claim types do not include claim type 'http://schemas.xmlsoap.org/claims/Group

Interestingly enough, this was the same error message the article was attempting to solve!

Fortunately, I came across this other article which offered a complete solution: http://www.theidentityguy.com/articles/2010/10/19/adding-claims-to-an-existing-token-issuer-in-sharepoint-2010.html

The key point to note is that you have to add the Claim Type to the TrustedIdentityTokenIssuer 1st, ONLY THEN you can add the Claim Type Mapping!!

 $SPTrustedIdp = Get-SPTrustedIdentityTokenIssuer "sts"  
 $SPTrustedIdp.ClaimTypes.Add("http://schemas.xmlsoap.org/claims/Group")  
 $SPTrustedIdp.Update()  

 
 $GroupClaimType = "http://schemas.xmlsoap.org/claims/Group"  
 $groupClaim = New-SPClaimTypeMapping -IncomingClaimType $GroupClaimType -IncomingClaimTypeDisplayName "Group" -LocalClaimType $GroupClaimType  
 Add-SPClaimTypeMapping -Identity $groupClaim -TrustedIdentityTokenIssuer $SPTrustedIdp  

7 comments:

  1. Hey There. I discovered your weblog the use of msn. This is a very
    neatly written article. I will make sure to bookmark it and return to
    read more of your helpful info. Thank you
    for the post. I will certainly return. ν† ν† 

    ReplyDelete
  2. Hello friends, its impressive article regarding educationand entirely defined, keep it up all the time. κ²½λ§ˆμ‚¬μ΄νŠΈ

    ReplyDelete
  3. This design is incredible! You definitely know how to keep a reader amused. I was almost moved to start my own blog μ˜¨λΌμΈμΉ΄μ§€λ…Έ

    ReplyDelete
  4. Fantastic job. I really enjoyed
    what you had to say, and more than that, how you presented it.
    Too cool! λ©”μ΄μ €μ‚¬μ΄νŠΈ

    ReplyDelete
  5. As I website possessor I believe the content matter here is rattling great , appreciate it for your hard work. You should keep it up forever! Best of luck.
    κ³ μŠ€ν†±

    ReplyDelete
  6. Thank you for your idea. You are such an incredible problem solver. λ¦΄κ²Œμž„

    ReplyDelete
  7. Nice post.Thanks for sharing such a valuable and informative blog. Please read my blog too
    Buy Nembutal Injectable Online (10 Ml)
    We sell quality 100 ml Nembutal (Pentobarbital sodium)Injection Solution (300mg/ML) CAS Number 57-33-0 online at a low and reasonable price without any a compromise on quality and purity of our Nembutal.

    Buy Nembutal Pills 100mg Online (100 Pills)
    Some people find nembutal pills more convenient to take than nembutal oral solution and nembutal injectable solution.Nembutal pills are very efficient for Voluntary euthanasia. The right lethal dose will lead to a peaceful and painless death within a few minutes.

    Buy Potassium/Sodium Cyanide Powder Online(50 Grams)
    Not all products are always readily available for purchase. One such item is the potassium cyanide. However, if you want to make a potassium cyanide buy online, you are in the right place. Our online store distributes the best quality potassium around the world. Our colorless crystalline is famous due to its exceptional and extremely high-quality properties. Whether you are a jewelry dealer or an individual who wants to end his or her life, you will love it.

    Buy Potassium/Sodium Cyanide Solution Online (100 Mg).
    Making a cyanide poison buy online is not always an easy feat. Alternatively, is it? For those who are not aware, cyanide is a traditional highly toxic chemical that can cause death if you use the right concentrations. However, buying it is close to impossible. According to the peaceful pill handbook forum, some people have been purchasing cyanide from China. The peaceful pill handbook also provides information on how to manufacture cyanide. You can also find many details on the same on the internet.

    ReplyDelete