How can we get alerts for a user in all site collection with in a web application.
alerts may be for lists, libraries, webs in different site collection but same web application....
It is not possible out of the box, you should do it programmatcially to get all alerts for specificuser in all site collections with in a web application:
SPSite mysite = new SPSite(http://yoursite);
SPWebApplication webapplication = mysite.WebApplication;
SPSiteCollection siteCollections = webapplication.Sites;
foreach (SPSite siteCollection in siteCollections)
using (SPSite oSiteCollection = new SPSite(siteCollection.Url))
SPWebCollection collWebsites = oSiteCollection.AllWebs;
foreach (SPWeb oWebsite in collWebsites)
SPUser user = oWebsite.EnsureUser(@"dc\Administrator");
SPAlertCollection alertColl = user.Alerts;
foreach (SPAlert alert in alertColl)
TechNet Community Support
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?