Sub showUserRoles( userID )
	Dim sReturn : sReturn = ""	
	Dim sCheck : sCheck = ""
	
	Dim oPredecessors
	Set oPredecessors = wforganisation.GetOrgObjectById(userID).Predecessors
	
	myBlacklist = getValueFromGlobalConfig("RoleBlacklist")
	For i=0 To oPredecessors.count - 1
	' 	sReturn = sReturn & oPredecessors.Item(i).Name & "|" & oPredecessors.Item(i).Id & ";"
		if isRoleInBlacklist(oPredecessors.Item(i).Name, myBlacklist) = false Then 'CC-000478
			sReturn = sReturn & oPredecessors.Item(i).Name & "|" & oPredecessors.Item(i).Id & ";"
		End If
	Next	
	If sReturn <> "" Then
		'remove last separator
		sReturn = Left(sReturn, (Len(sReturn)-1))
	End If
	
	Dim xmlStr : xmlStr = ""
	Dim sXML : sXML = ""
	xmlStr = xmlStr & "<axaddxmltree returnsinglevalue=""1"" multiselect=""0"" withcheck=""0"" initaslist=""1"" initasdialog=""0"""
	xmlStr = xmlStr & " selectlastnode=""0"" deselectwhencollapse=""0"" splitchar=""|"" group_splitchar="";"" gridlines=""0"" validate=""0"" stayopenonerror=""0"" allow_oneclick=""0"">"	
	sReturn = split(sReturn,";")
	For i=0 To UBound(sReturn)
		Dim aReturn : aReturn = Split( sReturn(i), "|" )
		'xmlStr = xmlStr & "<ebene selectable=""1"" returnvalue=""" & sReturn(i) & """ bold=""1"" forecolor=""0"" name=""" & aReturn(0) & """/>"
		'xmlStr = xmlStr & "<ebene selectable=""1"" returnvalue=""" & sReturn(i) & """ bold=""0"" forecolor=""0"" name=""" & aReturn(0) & """/>"	'CC-000265: set bold to 0
		xmlStr = xmlStr & "<ebene selectable=""1"" returnvalue=""" & convertToValidXML(sReturn(i)) & """ bold=""0"" forecolor=""0"" name=""" & convertToValidXML(aReturn(0)) & """/>"	'CC-000110
	Next

	xmlStr = xmlStr & "</axaddxmltree>"
	
	Dim sAttIds : sAttIds = ""
	Dim oXMLTree : Set oXMLTree = CreateObject("axaddxmltree.ASAddon") 
	oXMLTree.InitMausPos
	oXMLTree.InitFromString sAttIds, xmlStr
	Set oXMLTree = Nothing	
	
	Dim arrRetValues
	arrRetValues = Split (sAttIds,";")
	If UBound(arrRetValues) > 0 Then
		MsgBox getMessageText( "StandardWF", "ChooseOnlyOneFunction", "Es kann nur eine Funktion gewhlt werden."), vbExclamation, "enaio" 
	Else
		If UBound(arrRetValues) = 0 Then 'in this case 0 means that exact 1 entry was chosen
			Dim arrRetValues0 : arrRetValues0 = Split( arrRetValues(0), "|" )
			wfvariables.sSearchUserFunction.Value = arrRetValues0(0)
			wfvariables.sSearchUserFunctionId.Value = arrRetValues0(1)
		End If
	End If
End Sub