AAD邀请失败,并显示“用户已在目录中". [英] AAD invite fails with "User already in directory"

查看:58
本文介绍了AAD邀请失败,并显示“用户已在目录中".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们在混合环境中运行O365.要管理合作伙伴公司的访问权限,我们邀请他们作为来宾用户.

问题是拥有OnPremises帐户的外部用户无法登录到. Sharepoint Online并访问特定的工作区.这是由于缺少本地AD帐户上的许可证而导致的. AD帐户具有对用户电子邮件的电子邮件引用 合作伙伴公司的帐户,因为该帐户是在迁移之前创建的.我通过广告帐户和Exchange清除了引用,因此我可以邀请用户作为访客.

即使清除了电子邮件引用,我仍然在目录中收到现有用户的错误.我最初以为会有延迟,所以我花了2个小时进行广告同步,但仍然是用户已在目录中".
我无法通过AAD管理中心或O365管理中心搜索找到具有电子邮件地址(我想用于邀请)的用户.

新访客用户"在哪里可以找到?仍然找到电子邮件地址?

解决方案

你好 使用 此链接以获取更多信息 ).

用于检查现有用户:

Get-MsolUser-全部|其中{


_.userPrincipalName -like"*@domainname.com"" | | fl> c:\ founduser.txt
Get-MsolUser-全部|其中{


_.proxyAddresses -like"*@domainname.com"} || fl> c:\ founduser1.txt
Get-MsolUser-全部|其中{


Hello all,

we are running O365 in a hybrid environment. To manage access for partner companies, we invite them as Guest users.

The problem is an external user with an OnPremises account cannot login to eg. Sharepoint Online and access a certain workspace. This is expected due to missing license on the On-Premises AD account. The AD account had e-mail references to the users e-mail account at the partner company because the account was created before migration. I cleared the references from the ad-account and through Exchange so i could invite the user as guest.

I'm still receiving an error of an existing user in the directory even though the e-mail references have been cleared. I initially thought there was a delay so i gave 2 hours for the ad sync but still "User already in directory".
I can't find the user with the e-mail address (that i want to use for the invite) with an AAD admin center or O365 admin center search.

Where could the "New Guest User" still find the e-mail address?

解决方案

Hello Juha, 

We are not exactly sure as to where the email reference is however there may surely be some stale entry in the directory. I would like you to use the following cmdlets after connecting to the Office365 Powershell (use this link for more info ) . 

For checking existing Users:

Get-MsolUser -All | where {


_.userPrincipalName -like "*@domainname.com"} | fl > c:\founduser.txt
Get-MsolUser -All | where {


_.proxyAddresses -like "*@domainname.com"}| fl > c:\founduser1.txt
Get-MsolUser -All | where {


这篇关于AAD邀请失败,并显示“用户已在目录中".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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