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)?


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.

| improve this answer | |
  • 1
    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
  • 1
    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,


| 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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