Cannot add eDiscovery Manager using PS.

Oleg Tserkovnyuk 661 Reputation points
2024-05-10T13:05:27.4633333+00:00

I am trying to add eDiscovery Manager using PS 7. I use an account with GA role.

My code:

Update-Module ExchangeOnlineManagement

Import-Module ExchangeOnlineManagement

$UPN = 'GlobalAdmin@company.com'

Connect-ExchangeOnline -UserPrincipalName $UPN

Add-RoleGroupMember -identity "eDiscovery Manager" -Member $UPN

Error:

Add-RoleGroupMember: Ex6F9304|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|The operation couldn't be performed because object 'eDiscovery Manager' couldn't be found on 'IA0PR18A10DC001.NAMPR18A010.PROD.OUTLOOK.COM'.

Seems like this solution worked around a year ago (https://learn.microsoft.com/en-us/answers/questions/1253703/unable-to-add-user).

Did I miss something?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,598 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Oleg Tserkovnyuk 661 Reputation points
    2024-07-31T08:13:23.22+00:00

    After almost 3 months MS provided the solution:

    1. You must use Connect-IPPSSession
    2. "eDiscoveryManager" must be typed without spaces (even though in the official documentation it is "eDiscovery Manager"

    The full code:

    Update-Module ExchangeOnlineManagement
    Import-Module ExchangeOnlineManagement
    $UPN = 'globalAdmin@lab.onmicrosoft.com'
    Connect-ExchangeOnline -UserPrincipalName $UPN
    Connect-IPPSSession -UserPrincipalName  $UPN
    $UPN1 = 'manager@lab.onmicrosoft.com'
    Add-RoleGroupMember -identity "eDiscoveryManager" -Member $UPN1
    
    2 people found this answer helpful.

  2. Noah Ma-MSFT 2,725 Reputation points Microsoft Vendor
    2024-05-13T09:40:55.9+00:00

    Hi @Oleg Tserkovnyuk,

    Welcome to Microsoft Q&A!

    Based on the information you provided, we have tested the same command in several different tenants. It all returns the same result as you. We consider this could be a backend issue since we all have the sufficient permission but cannot perform this operation.

    A screen shot of a computer program

    However, you could add eDiscovery Manager via Compliance portal (https://compliance.microsoft.com/)

    A screenshot of a computer A screenshot of a computer

    Also, you could consider adding the user as eDiscovery Administrator instead of eDiscovery management with Add-eDiscoveryCaseAdmin command as below.

    User's image

    The primary difference between an eDiscovery Manager and an eDiscovery Administrator is that an eDiscovery Administrator can access all cases that are listed on the eDiscovery cases page in the compliance portal. An eDiscovery manager can only access the cases they created or cases they're a member of. You can decide based on your specific situation.

    If there anything else I can help, please let me know.


  3. Oleg Tserkovnyuk 661 Reputation points
    2024-07-31T08:16:48.3466667+00:00

    Duplicate

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.