Answered Sharepoint custom claims provider and Spuser

  • Wednesday, February 29, 2012 9:30 AM
     
     

    Hi,

    Am working with Custom Claims provider and have the following question:

    Will all custom claims be available with SPUSer? If so how ?

All Replies

  • Wednesday, February 29, 2012 7:54 PM
     
     Answered

    Hi

    look at the "claims viewer web part" samples.

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

    http://blogs.technet.com/b/speschka/archive/2011/03/29/how-to-get-all-user-claims-at-claims-augmentation-time-in-sharepoint-2010.aspx

    • Marked As Answer by FIM struggles Friday, April 06, 2012 6:55 AM
    •  
  • Thursday, March 01, 2012 5:03 AM
     
     

    thank you Wehr but this is not what i had in mind.

    I guess my question was really vague. What i have done is  created the custom claims provider and i have all the claims i need for the user. I am able to access the claims through IClaimsIdentity. My question can we access the claims for a logged in user (SPUser) in any other way?

  • Friday, March 02, 2012 9:41 AM
    Moderator
     
     

    Hi,

    Thank you for your question .I am trying to involve someone familiar with this topic to further look at this issue.

    Thanks


    Entan Ming

    TechNet Community Support

  • Monday, March 05, 2012 10:05 AM
    Moderator
     
     

    Hi FIM struggles ,

    Can you please post a copy of your code? This will allow us to understand how you developed your custom claims, and allow us to better answer your question.

    Thanks


    Entan Ming

    TechNet Community Support

  • Wednesday, March 14, 2012 1:01 AM
     
     
    You can use IClaimsPrincipal also, http://msdn.microsoft.com/en-us/library/ff955607.aspx