문제

i am able to remove the user from site collection using in this way:-

SPWeb.SiteUsers.Remove("providername:" + this.txtOldName.Text);

but found the same user existing in All People how to remove user from All People programmatically

도움이 되었습니까?

해결책

i fixed the issue using

oldUser = oWeb.SiteUsers["providername:" + this.txtOldName.Text];
int id = oldUser.ID;
oWeb.SiteUsers.RemoveByID(id);

oWeb is the object of SPWeb

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top