0
Answered

SharePoint configuration wizard should highlight fields that are marked as Choice List types

Matthew Clark 8 years ago in UNIFYBroker/Microsoft SharePoint • updated by anonymous 3 years ago 4

Choice List types can cause some issues in an identity management solution - see the troubleshooting information. It would therefore be helpful if the SharePoint Connector Configuration wizard could highlight fields that are marked as choice list fields (as simple as checking the ChoiceTypes enum of the attribute's PropertyInfo when retrieving the schema).

Moreover, if the choice list is marked as "Closed", the field could be marked as readonly in the schema - see http://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles.choicetypes.aspx. This could also be done by default in order to prevent new choices from being added when the property is not set to "Open" - although this would prevent updates of the field to other valid options for the user. Some further investigation into appropriate behaviour in this case should be carried out.

Estimate includes familiarization with UI, formatting of the XSL, and testing.

Affected Versions:
Fixed by Version:

The PropertyInfo object retrieved using GetUserProfileSchema contains a value of "Off" for the "ChoiceType" field in MOSS 2007, regardless of whether or not the property uses a choice list or not (or whether it is an open or closed choice list). It may be that this value is only set if the SharePoint schema has been configured programmatically by using the method described here. Will investigate SharePoint 2010 behaviour.

Investigation of SharePoint 2010 API reveals that this data is not available at all in 2010. The enumeration is present, but nothing exposes this information about a property. Refer to http://msdn.microsoft.com/en-us/library/ms496941.aspx, http://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles.coreproperty_members.aspx and http://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles.userprofilemanager_members.aspx.

Marking as resolved as this cannot be achieved. The documentation, however, has been updated to attempt to mitigate this issue at IDBSP305:Choice List Type Fields

Adam, please confirm if the above is sufficient in your mind in addressing this issue.