且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

AD已删除用户仍在SharePoint网站上显示

更新时间:2023-12-01 15:57:04

嗨ghsajith。

Hi ghsajith.

据我所知,没有自动方法从SharePoint网站的权限或组中删除这些孤立的AD帐户,因为这些帐户仍将存在于网站集内容数据库的UserInfo表中。

您必须编写一个PowerShell脚本,该脚本会获取这些已删除的AD帐户的列表,并从SharePoint网站执行删除操作或网站集:您可以查看  https://ehikioya.com/ps-delete-sharepoint-orphaned-users/
或  https://www.codeproject.com/Tips/848365/Cleaning-up-已删除-Share-accounts-from-SharePoint-gr

As far as I know, there is no automatic way to remove those orphaned AD accounts from SharePoint sites' permissions or group, since those accounts will still exist in the UserInfo table of the site collection's content database.
You have to write a PowerShell script that takes a list of those deleted AD accounts and performs the removal operation from the SharePoint sites or site collections: you could take a look at the examples available at https://ehikioya.com/ps-delete-sharepoint-orphaned-users/ or https://www.codeproject.com/Tips/848365/Cleaning-up-deleted-AD-accounts-from-SharePoint-gr.

再见。