SPFarm.MigrateUserAccount method (String, String, Boolean)
將SharePoint Foundation的使用者帳戶移轉為新的登入名稱及二進位識別碼。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub MigrateUserAccount ( _
oldLogin As String, _
newLogin As String, _
enforceSidHistory As Boolean _
)
'用途
Dim instance As SPFarm
Dim oldLogin As String
Dim newLogin As String
Dim enforceSidHistory As Boolean
instance.MigrateUserAccount(oldLogin, _
newLogin, enforceSidHistory)
public void MigrateUserAccount(
string oldLogin,
string newLogin,
bool enforceSidHistory
)
參數
oldLogin
Type: System.String包含舊的登入名稱的字串。
newLogin
Type: System.String包含新的登入名稱的字串。
enforceSidHistory
Type: System.Boolean若要查詢 Active Directory SID 歷程記錄屬性,以確保新的登入名稱會對應至舊 ; true否則,請false。
備註
如果新的登入名稱的項目已存在,它會刪除允許這項變更。在整個伺服器陣列中更新下列實體: 網站集合使用者資訊表格、 人員清單和安全性原則中的使用者。