首页 文章

如何将Microsoft帐户添加到Azure Active Directory?

提问于
浏览
3

当您通过旧门户将用户添加到Azure Active Directory时,您会看到以下屏幕:
enter image description here
它允许您添加具有现有Microsoft Office帐户的用户 .

我需要使用现有的Microsoft帐户导入许多用户 . 我打算写一个PowerShell脚本来实现这个目标 .

如何使用PowerShell脚本向Azure AD添加一个exising的Microsoft Office帐户?

New-AzureADUser抱怨"userPrincipalName"无效,如this question中所示 . 还有另外一种方法吗?

3 回答

  • 0

    遗憾的是,Azure PowerShell模块不支持将Microsoft帐户添加到Azure Active Directory . 使用此功能的唯一方法是使用旧的Azure门户https://manage.windowsazure.com/

  • 0

    您确定要导入所有帐户吗? Azure Active Directory支持B2B模型 .

    B2B基于邀请模型,允许您从合作伙伴管理的身份访问您的企业应用程序 . 您可以提供电子邮件以及要共享的应用程序,并向您的合作伙伴,客户或在Azure Active Directory中拥有帐户的任何其他人发送邀请 . Azure AD向他们发送带有链接的电子邮件邀请 . 合作伙伴用户关注该链接,并提示您使用其Azure AD帐户登录或注册新的Azure AD帐户 .

    在我看来,您不必导入用户 . 更多信息:https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2b-collaboration-overview/

  • 1

    这适用于 New-AzureADMSInvitation .

    > Install-Module AzureAD
    > Import-Module AzureAD
    > Connect-AzureAD
    > New-AzureADMSInvitation -InvitedUserEmailAddress 'test@test.com' -InviteRedirectUrl 'https://portal.azure.com'
    

    您的输出将包含被邀请者 open in a browser which is already logged in with their Microsoft AccountInviteRedeemUrl . 还有其他可选参数可以传递给 New-AzureADMSInvitation . 请参阅文档here .

相关问题