views:

805

answers:

3

Is it possible to get a list of alerts for ALL users within a given site? After messing with the GetAlerts method in /_vti_bin/Lists.asmx, it seems it always executes in the context of the user who provided it with credentials, and will only return the Alerts for THAT user. I was hoping to get a list of EVERY alert within the site.

I know I can probably do this via the SharePoint API in a console app but was hoping to use web services or another method that didn't require direct access to the SharePoint box.

I guess the other method would be to write a custom web service... but I was hoping for something quick and easy.

+1  A: 

I think you have answered your question. There is no easy way, only custom coding is left.

Nat
Nat is correct.
dahlbyk
A: 

Couldn't you use the _vti_bin/sitedata.asmx GetListItems (it allows you to send CAML) method to retrieve alerts and just run the call to the service as the application pool's identity, that should retrieve all items, since the application pool identity is the system account for your site collection....

Colin
Colin, thanks for the answer. After looking at the GetListItems method, it looks like this only returns ListItems (not alerts). AFAIK, alerts are not stored in a list anywhere within the site collection.
Kit Menke
A: 

you can use object model.

can see the code here Here

esha