in my eventreceiver project, itemAdded function, my code is going to add item to a second list but it is not working for some user with low privilege
SPSecurity.RunWithElevatedPrivileges(delegate ()
{
using (SPSite site = new SPSite(properties.SiteId))
{
using (SPWeb web = site.OpenWeb(properties.Web.ID))
{
web.AllowUnsafeUpdates = true;
//my code
web.AllowUnsafeUpdates = false;
}
}
}
Please be sure to use the elevated web when getting the SPList object. Not use the SPWeb from the current SPContext or event receiver properties.
So in Your case getting the list should look like:
if this doesn't do the trick please provide a bit more code to check and maybe the error that is present.