New answers tagged user
0
I finally found a solution.
I'm still unable to display a , so I used a PeopleEditor as explained here : http://karinebosch.wordpress.com/sharepoint-controls/peopleeditor-control/
Then, in my aspx.cs file, here is how I get the selected user :
PeopleEditor peManager = (PeopleEditor)i.FindControl("peManager");
peResponsable.AutoPostBack = true;
...
0
Please, try the following code:
SPUser user = web.EnsureUser("{user login}");
item["Manager"] = user;
item.Update();
0
I am guessing you are trying to remove yourself as yourself? A script or a manual removal ran as a server administrator or another Site Collection Administrator should be able to accomplish this.
The script itself will be very basic.
Top 50 recent answers are included