如何删除 Azure Active Directory 上的来宾用户?
How to remove Guest user on Azure Active Directory?
我添加了一个具有目录角色的用户 'Guest'。我现在想删除。
Azure 门户用户界面有一个 "Delete" 选项,但它是灰色的,没有任何解释。我试过 "Find a User" 屏幕,我试过 "Quick Overview Screen",我试过 "Manage -> Users and Groups -> All Users"。同样,"Delete" 被禁用,没有任何解释。
我也试过Powershell。我将 AzureRM 和 Azure 模块安装到 Powershell 中。我访问我的 Azure 帐户并关注多个在线文档(即 Azure GitHub 文档:https://github.com/Azure/azure-docs-powershell-azuread/blob/master/Azure%20AD%20Cmdlets/MSOnline/index.md)以访问我无法连接的 Azure AD。
我在 Powershell 中输入:
$Msolcred = Get-credential
提示输入凭据,然后按照我尝试使用 cmdlet 的教程:
Connect-MsolService -Credential $MsolCred
但我收到错误消息:
Connect-MsolService : The term 'Connect-MsolService' is not recognized as the name of a cmdlet, function, script fi
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
Add-AzureRmAccount -SubscriptionName 'SUBNAME'
Get-AzureRmADUser #Look up the user GUID
Remove-AzureRmADUser -UPNOrObjectId 'USER GUID'
要安装此模块,您应该 运行 'Install-Module AzureRM'(这需要一些时间)
我添加了一个具有目录角色的用户 'Guest'。我现在想删除。 Azure 门户用户界面有一个 "Delete" 选项,但它是灰色的,没有任何解释。我试过 "Find a User" 屏幕,我试过 "Quick Overview Screen",我试过 "Manage -> Users and Groups -> All Users"。同样,"Delete" 被禁用,没有任何解释。
我也试过Powershell。我将 AzureRM 和 Azure 模块安装到 Powershell 中。我访问我的 Azure 帐户并关注多个在线文档(即 Azure GitHub 文档:https://github.com/Azure/azure-docs-powershell-azuread/blob/master/Azure%20AD%20Cmdlets/MSOnline/index.md)以访问我无法连接的 Azure AD。
我在 Powershell 中输入:
$Msolcred = Get-credential
提示输入凭据,然后按照我尝试使用 cmdlet 的教程:
Connect-MsolService -Credential $MsolCred
但我收到错误消息:
Connect-MsolService : The term 'Connect-MsolService' is not recognized as the name of a cmdlet, function, script fi
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
Add-AzureRmAccount -SubscriptionName 'SUBNAME'
Get-AzureRmADUser #Look up the user GUID
Remove-AzureRmADUser -UPNOrObjectId 'USER GUID'
要安装此模块,您应该 运行 'Install-Module AzureRM'(这需要一些时间)