Modifying Mailboxes using delegated partner credentials

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Cyril Muffat Cyril Muffat 3 months ago.

  • Author
    Posts
  • #67575
    Profile photo of Michael Orellana
    Michael Orellana
    Participant

    My goal: To be able to administer our partner mailboxes i.e. Converting mailboxes to shared, set forwarding rules etc.. in powershell

    Current status: Script works as it should, connects me to my partners exchange online environments. Running Get-mailbox works fine; however, when we get to changing mailbox information it gets tricky.

    Issue: When I run the command below I receive the error: The remote server returned an error: (401) Unauthorized...

    Set-Mailbox -Identity email -Type Shared

    Oddly enough, if I run the command below, I get no error at all it commits the change of display name just fine.

    Set-Mailbox -Identity email -displayname NewName

    I have a test tenant I can work with that is solely in Office 365, meaning no hybrid configuration.

    I will happily paste my script however It keeps getting blocked as spam even after me sanitizing it of all confidential info (it doesnt have any to begin with).

  • #67582
    Profile photo of Cyril Muffat
    Cyril Muffat
    Participant

    Have u checked ur rights on the mail box for ur user ?

    https://technet.microsoft.com/en-us/library/aa998218(v=exchg.160).aspx

    Get-mailboxperm

You must be logged in to reply to this topic.