User Information List
The other day I was trying to create a list event receiver that would fire when a user was added to SharePoint. I did some research and found the User Information List, which is the list that contains all the users in SharePoint. You access this list when you click on the People and Groups link. I built the event receiver and attached it to the list and added some users, only to find out that the event was not firing.
I did some debugging and the code was working fine, so I decided to attach the event receiver to another custom list and added some items to that. The event receiver fired perfectly. I used the U2U CAML Query Builder to run some queries against the User Information List and was able to get back the type of data I wanted in my event receiver.
I tried to do some more research and could not find anyone else out there that was trying to do the same thing as me and so I came to the conclusion that there is some special setting on the User Information List that does not allow the events to fire. I will keep this on the list of items to watch out for and if anyone has any ideas feel free to let me know.
Labels: User Information List
4 Comments:
Hi,
I am just associating a custom Event handler feature with SharePoint "User Information" list, for creating a copy of newly added user in another sharepoint custom list with the help of "ItemAdded" event handler, which will maintain user profile but it doesn't seems to fire ItemAdding event with "User Information" list.
I have read this article: "http://msdn.microsoft.com/en-us/library/aa979520.aspx".
So, can you please suggest me that how can i handle events for "User Information" list?
Have you find any conclusion about this issue?
Thank you,
Saurabh Kumar Singh
I have not found any solution to this issue. I ended up abadoning that route and found a different way to do what I needed to accomplish.
Michael
Hi Mike,
Can you describe the work-around you came up with? I'm attempting to do the same thing but frustrated that it just doesn't work.
Andrew,
We ended up building a separate application that interacted with SharePoint to do part of what I wanted to accomplish and the second part is still very manual. I have to add people to the groups that I wanted using the UI instead of automatically adding them to groups when they are added to the SharePoint site collection. It is not ideal but until someone finds why event handlers don't work on the User Information list, it will have to work.
Michael
Post a Comment
Subscribe to Post Comments [Atom]
<< Home