我們希望在SharePoint中自動執行外部用戶邀請。我們試圖實現的手動過程有效,但不是Powershell方法。Azure AD - 外部用戶對SharePoint的邀請使用Powershell
手動處理: 通過邀請將sharepoint站點分享給電子郵件(例如[email protected])。當受邀用戶接受邀請時,用戶將創建一個Microsoft帳戶,該帳戶將通過UPN a-guest-user_anyemail.com#EXT#@mytenant.onmicrosoft.com在我們的Azure AD租賃中創建一個帳戶。用戶可以隨後使用該電子郵件作爲登錄ID登錄([email protected])。
使用PowerShell Azure的AD模塊V2 步驟:使用PowerShell命令
新AzureADUser -DisplayName 「AGuest用戶」 -PasswordProfile $ PasswordProfile -AccountEnabled $真
- 創建用戶-MailNickName「aguestuser」 -UserPrincipalName「[email protected]」-UserType「Guest」-OtherEmails「ag [email protected]」
一旦做到這一點,該用戶可以成功地使用[email protected],但不使用電子郵件即[email protected]
登錄當使用Powershell進行配置時,是否有人知道如何讓外部用戶使用他們的電子郵件帳戶登錄?謝謝
經過大量的試驗和錯誤之後,我發現可以使用New Azure B2B API(當前處於預覽中)命令New-AxureADMSInvitation完成此操作。此過程在當前的Azure AD中創建本地訪客帳戶,當用戶接受邀請時,他們可以使用其現有Microsoft帳戶登錄或創建新密碼。 – Aarun