Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have got several custom claim providers which provide search and resolve functionality to the orgin sources of various incoming claims to our SharePoint 2010 farm.

I was wondering if anyone knew how to display a different image (to the default 'polaroid' of a user) in the claim picker in 'detailed view.' I would ideally like to show an icon which pertians to the source of that claim data, rather than an icon which suggests user data.

It does strike me that the schema for the claim picker is still focussed around users and does not lend itself to a truly federated access management scenario where your key claim may not be user centric.

Help is appreciated as always.

share|improve this question
add comment

1 Answer 1

It took me some time and I lost some hair in process, but I managed to solve this one. And it's so simple that it hurts.

When developing custom claim provider you are overriding method FillSearch. Here you are filling search results with your custom entities. When creating new custom entity just add new key to your EntityData hashtable and call it .... Picture. In the value part store path to the picture and you are done.

Example:

PickerEntity entity = CreatePickerEntity();
// Bulid your entity
entity.EntityData["Picture"] = "/_layouts/images/mybeautifulclaimpic.png";
// Add picker to results tree
searchTree.AddEntity(entity);

In general you can define different picture for each entity or use one picture for each custom claim provider or you can do whatever you like.

share|improve this answer
add comment

Your Answer

 
discard

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.