microsoft / microsoft/CSS-Exchange

The operation failed because UPN value provided for addition/modification is not unique forest-wide.

Open
#156 0 comments 0 reactions 1 assignee View on GitHub

@dpaulson45 is already working on this.

Since Sep 8, 2021.

Enhancement Need Investigation Setup Setup Assist Setup Log Reviewer
Dominant language
PowerShell
Stars
1.3k
Forks
395
Avg merge
14h 7m
Merged PRs (30d)
5

Description

Is your request related to a problem? Please describe.
Seen a few cases on this, should add this to collect as well

Describe The Request
It appears we will attempt to create critical system mailboxes. We try to find them based off the Last Name. If admins delete the Last Names of the system mailboxes, it causes this issue.

Additional context

          $arbMbxname = "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}";
          $arbMbxLastName = "MsExchDiscovery e0dc1c29-89c3-4034-b678-e6c29d823ed9";
          $arbUser = @(Get-User -Filter {LastName -eq $arbMbxLastName} -IgnoreDefaultScope -ResultSize 1);
          if ($arbUser.Length -eq 0) 
          {
            $arbUser = @(Get-User -Arbitration -Filter {LastName -eq $arbMbxLastName} -IgnoreDefaultScope -ResultSize 1);
          }

          if ($arbUser.Length -eq 0)
          {
            Install-UserAccount -Name $arbMbxname -LastName $arbMbxLastName;
          }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.