SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

In a Sharepoint 2010 page, I am using a people picker to pick users or groups, SPgroups as well as Active directory groups. I am then retrieving every item that was picked as a PickerEntity.Key which I will then user later. I'm having trouble when using Claims auth. though. When I am using Claims, PickerEntity.Key will return claims encoded value, i.e. "c:0+.w|s-1-5-21-2328529170-2908158620-1515059926-513" which is the value returned when I select the Active Directory group "myDomain\Domain Users".

My question is quite simple, how can I decode the claims value "c:0+.w|s-1-5-21-2328529170-2908158620-1515059926-513" to get the ADGroup name "myDomain\Domain Users" ?

I've been searching for a couple hours now but found nothing. I thought this would be pretty straight forward... :(

Thanks for any help!

EDIT: Argh! I hate when I find a solution so soon after posting my question. Finally figured out I was not looking at the right place, trying to convert the Key value. Instead I stopped using the Key property of PickerEntity and now use the DisplayText Property. Works as a charm...

share|improve this question
up vote 0 down vote accepted

As I mentionned in the Edit, I finally found a solution to my problem.

share|improve this answer

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.