SharePoint 2010 User Profile Service Application SQL Query to get users who do not have 'about me' filled out.

Run this Query on your UPSA DB.

SELECT
Name = [UserProfile_Full].PreferredName,
Email = [UserProfile_Full].Email,
Link  = 'http://yoursite/Person.aspx?accountname=' + NTName
FROM [User Profile Service Application_ProfileDB].[dbo].[UserProfile_Full]
where RecordID not in
(
select upf.RecordID from
UserProfile_Full upf left join UserProfileValue upv
on upv.RecordID = upf.RecordID
left join PropertyList pl on pl.PropertyID = upv.PropertyID
where  PropertyName = 'AboutMe' and DATALENGTH(upv.PropertyVal) > 8)
)
and Email is not null
order by Name

Comments

Popular posts from this blog

Metastorm - Open form in an action from a list or link

Corporate Intranet Information Architecture – a Publishing Site

No Search Results in SharePoint Contextual Search OSSSearchResults.aspx