永久删除用户 [英] Permanently delete a user

查看:64
本文介绍了永久删除用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从Azure AD永久删除用户.

例如.我们为用户添加了电子邮件:test@täst.com.
我们不想将此帐户与瑞典charä一起使用.然后,我尝试添加test@tast.com,这是正确的地址.那不可能,因为该帐户已经存在.我假设我们的ä"被解析为"a".我们无法验证和登录 通过test@tast.com

I can't manage to permanetly delete a user from Azure AD.

For example. We have added a user with email: test@täst.com.
We don't want to use this account with swedish char ä. Then i try to add test@tast.com wich is the correct address. Thats not possible cuz the account already exists. I assume that our "ä" being parsed as "a". And we can't verify and login with test@tast.com

因此,我想删除test@täst.com,然后添加test@tast.com.

For that reason i would like to delete test@täst.com and then add test@tast.com.

我按照以下步骤永久删除用户.https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-users-restore

I follow these steps to permanently delete a user. https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-users-restore

然后从用户界面中消失了.

It's then gone from the UI. 

但是,如果我再添加test@tast.com,它仍然说该帐户已经存在.

真正如何删除该用户?

But if i then add test@tast.com it still says the account already exists.

How do a really delete that user?

/Fredrik

推荐答案

您可能需要同时从Azure AD和Office 365删除用户.

You may need to delete the user from both Azure AD and Office 365. 

首先,在计算机上安装Azure Active Directory Powershell模块.

First, install the Azure Active Directory Powershell module on your computer.

然后运行:

PS C:Scripts> Connect-MsolService

要查看已删除用户的列表,请运行:

To see a list of deleted users run:

您可以使用Remove-MsolUser和-RemoveFromRecycleBin开关删除特定用户.

You can remove a specific user with Remove-MsolUser and the -RemoveFromRecycleBin switch.

PS C:Scripts> Remove-MsolUser -UserPrincipalName Lynn@office365bootcamp.com -RemoveFromRecycleBin

要删除所有已删除的用户,您可以将Get-MsolUser输出通过管道传递到Remove-MsolUser并添加-Force开关,以避免提示您进行每次删除.

To remove all deleted users you can pipe the Get-MsolUser output to Remove-MsolUser and add the -Force switch to avoid being prompted for each removal.








这篇关于永久删除用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆