SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom claims provider and now I got this new requirement to augment some new claims based on claims which user already has.

How can I get user claims which are already augmented (eg. those coming from ADFS)?

share|improve this question
up vote 3 down vote accepted

You can get claims through below code:

        var claimsPrincipal = Page.User as IClaimsPrincipal;
        if (claimsPrincipal != null)
            IClaimsIdentity claimsIdentity = (IClaimsIdentity)claimsPrincipal.Identity;
            var userClaims = claimsIdentity.Claims;

But if you want to add the claim at the time of augmentation, then probably following link guide you more.

How to Get All User Claims at Claims Augmentation Time in SharePoint 2010

Let me know if this helps you.

share|improve this answer
Make sure you add a reference to Microsoft.IdentityModel.dll which comes with Windows Identity Foundation – Jon Lester Oct 2 '12 at 12:35
Link looks promising. I'll check that and get back with result. – jjczopek Oct 5 '12 at 16:41
This is exactly what I was looking for (link to Steve Peshka's Blog)! – jjczopek Oct 7 '12 at 12:15

can you please check the link,

share|improve this answer
While this may theoretically answer the question, we prefer inclusion of the essential parts of the answer here, and to provide the link for reference. See answer for general guidelines. – SPDoctor Oct 5 '12 at 7:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.