locked
Remove inactive users RRS feed

  • Question

  • Hello,

    we have a sharepoint 2007.

    I get a lot of questions about, why can I still see person A (search in sharepoint), the user has left the company X month ago etc.

    I have searched this forum and alot of others threads, but no one has solved my problem yet.

    I already use this trick:

    (&(objectCategory=person)(objectClass=user)( !(userAccountControl:1.2.840.113556.1.4.803:=2))

    I have done more then 3 FULL IMPORTS, the persons are still there.

    Now i started to delete them manually, but do I really need to do this one in a while?

    I also throught I would make a powershell script, which would loop all inactive users in sharepoint and doublecheck them against AD, but I'm not that much into the Powershell yet.

    Any ideas?

     


    Jakob Olsen
    Wednesday, April 13, 2011 1:16 PM

Answers

  • This is more like a workaround but you could think about adjusting "People" scope in the way that it will not return inactive users.

     



    Mariusz Gorzoch
    Blog : http://mariusz.gorzoch.pl
    Twitter : http://twitter.com/MariuszGorzoch
    • Marked as answer by David HM Thursday, May 5, 2011 8:36 AM
    Friday, April 22, 2011 2:00 PM

All replies

  • Did you read this article?

    http://geekswithblogs.net/MOSSParadox/archive/2007/07/10/Cleaning-Inactive-Profiles-from-SharePoint-2007.aspx

     

     


    Wednesday, April 13, 2011 3:40 PM
  • Yes, but i'm unsure how to do a re-index of the search index.

    I have read something about:

     

    stsadm -o spsearch stop fullcrawlsearch

    and

    stsadm -o spsearch start fullcrawlsearch

     

    would make a new index, but i'm not sure.

    Any one?


    Jakob Olsen
    Wednesday, April 13, 2011 5:59 PM
  • This is more like a workaround but you could think about adjusting "People" scope in the way that it will not return inactive users.

     



    Mariusz Gorzoch
    Blog : http://mariusz.gorzoch.pl
    Twitter : http://twitter.com/MariuszGorzoch
    • Marked as answer by David HM Thursday, May 5, 2011 8:36 AM
    Friday, April 22, 2011 2:00 PM