Bonsoir,
La table [ProfilePropertyDefinition] contient la définition des champs. La table [UserProfile] contient les valeurs de chaque propriété de profil de chaque utilisateur.
Pour récupérer l'ID du champ Telephone :
SELECT [PropertyDefinitionID] FROM [ProfilePropertyDefinition] WHERE [PropertyName] = 'Telephone' AND [PortalID]=ID_de_ton_portail.
Pour récupérer la valeur d'un user :
SELECT [PropertyValue] FROM [UserProfile] WHERE [UserID]=ID_de_ton_user AND [PropertyDefinitionID]=La_valeur_précédemment_récupérée.
En une seule requête :
SELECT [PropertyValue]
FROM [NomDeLaBDD].[dbo].[UserProfile] UP
inner join [ProfilePropertyDefinition] PPD on UP.PropertyDefinitionID=PPD.[PropertyDefinitionID]
WHERE PPD.[PortalID]=ID_de_ton_portail AND UserID=ID_de_ton_user AND [PropertyName] = 'Telephone'
Simon