Forum Discussion

luanoprz's avatar
luanoprz
Copper Contributor
Jun 24, 2023
Solved

PowerShell Exchange Online

Hello, I want to read the permissions of a mailbox with PowerShell. However, I would like to have read only the UPN. how do i get that?

  • Deleted's avatar
    Deleted
    Jun 25, 2023

    luanoprz 

    use Get-MailboxPermission -Identity abc@xyz |ft identity,user

    by pipline the result you will get only what you need.

     

    If I have answered your question, please mark your post as Solved

    If you like my response, please give it a Like :smile:

    Appreciate your Kudos! Proud to contribute! ğŸ™‚

     

     

  • Hi luanoprz 

    I can't get your point if you want to get permission with powershell. just use Get-mailboxpermission 

     

     

    If I have answered your question, please mark your post as Solved

    If you like my response, please give it a Like :smile:

    Appreciate your Kudos! Proud to contribute! ğŸ™‚

     

     

    • luanoprz's avatar
      luanoprz
      Copper Contributor

      Hi Deleted 

      I just want to have the value from the User column (that's the UPN). I need these values in a variable to write them to a SharePoint list

       

      • Deleted's avatar
        Deleted

        luanoprz 

        use Get-MailboxPermission -Identity abc@xyz |ft identity,user

        by pipline the result you will get only what you need.

         

        If I have answered your question, please mark your post as Solved

        If you like my response, please give it a Like :smile:

        Appreciate your Kudos! Proud to contribute! ğŸ™‚

         

         

Resources