Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Custom People Picker with Claims

$
0
0

I have an environment that is using Claims authentication and I'm trying to modify the View a user sees when he hits 'Browse' on the People Editor. When claims is enabled the page (Picker.aspx) appears like this, instead of the normal Picker.aspx page:

What I'd like to do is force the page to go to its default view, even in Claims mode. I've deconstructed the URL, which looks like this:

SITEURL/_layouts/Picker.aspx?MultiSelect=True&CustomProperty=User%2CSecGroup%2CSPGroup%3B%3B15%3B%3B%3BFalse&
DialogTitle=Select%20People%20and%20Groups&
DialogImage=%2F_layouts%2Fimages%2Fppeople%2Egif&
PickerDialogType=Microsoft%2ESharePoint%2EWebControls%2EPeoplePickerDialog%2C%20Microsoft%2ESharePoint%2C%20Version%3D14%2E0%2E0%2E0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D71e9bce111e9429c&
ForceClaims=True&
DisableClaims=False&
EnabledClaimProviders=&
EntitySeparator=%3B%EF%BC%9B﹔

If I manually swap the values of the two highlighted fields, then I get the desired result. But I haven't been able to figure out how to do this from code. I've tried to override the PeopleEditor class and set these two members OnInit, but PeopleEditor doesn't appear to be getting called at all when you hit 'Browse'. It appears to be going through PeoplePickerDialog, which is sealed, and trying to override its parent PickerDialog , but that doesn't appear to be getting called as part of this page loading process either.

Does anyone have any thoughts on the best way to approach this problem? I'd like to keep it code-behind because the functionality needs to be global, if at all possible.


Viewing all articles
Browse latest Browse all 11508


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>