Forum Discussion

Thomps_0's avatar
Thomps_0
Brass Contributor
Apr 08, 2020

How to manage a bookings site after the owner leaves the organization

I have done a bit of digging and cannot seem to find this anywhere, so I thought I would try here.  I am looking to find out if there is a way to easily manage Bookings sites after a sole owner leaves the organization.  I understand that these sites all have back-end mailboxes but I cannot find an easy way to add an owner through powershell or through the Bookings pages even as a Global Admin.  Any help or insight would be great!

  • Kreera_House's avatar
    Kreera_House
    Steel Contributor

    Thomps_0  Ken_VUB   You add a new or additional admin to the Bookings site by giving them Full Access permissions to the Bookings mailbox and they can then open the site through the Bookings web app:

    Add-MailboxPermission -Identity <BookingsMailbox> -User <BookingsSiteAdminUser> -AccessRights FullAccess -InheritanceType All

    • Thomps_0's avatar
      Thomps_0
      Brass Contributor

      Kreera_House I struggled with initially to find the bookings mailbox name.  To find it, go to the Bookings Page and under "Share your page" you can see the email account name created for your site in the share URL.  The issue I had is these accounts don't show up in ECP, and initially I didn't realize they were a specific RecipientTypeDetails value.  

      With that, you can also use this to get all your Bookings mailboxes:
      Get-Mailbox -ResultSize Unlimited | Where {$_.RecipientTypeDetails -eq 'SchedulingMailbox'}

      • Kreera_House's avatar
        Kreera_House
        Steel Contributor

        Thomps_0  Right. With that you'll get a list of all of your Bookings sites in your tenant.

         

        If you're looking for just an individual mailbox to find out whether it's forwarded to anyone or what its mailbox address is so that you can construct the URL of the published site, you can also use Get-Mailbox or Get-Recipient with the Business Name in quotations marks and pull the PrimarySmtpAddress or ForwardingSmtpAddress.

         

        If you want to find out if there are other admins of the site, use Get-MailboxPermission.

         

        It would be great if Bookings had its own set of PowerShell cmdlets to manage and retrieve information about Bookings sites, but some of the information is retrievable with standard Exchange PowerShell cmdlets.

    • LisaJo48's avatar
      LisaJo48
      Iron Contributor
      Kreera,
      I am an Intermediate PowerShell User at best. This sounds like what I need to do. Can you walk me through it in a bit more detail and/or refer me to a blog where it does?
      Thanks
    • MichaelOliv's avatar
      MichaelOliv
      Iron Contributor

      SubhamKSinha 

      Thanks. I missed that one :
      Add-RecipientPermission -Identity <bookingmailbox@emailaddress> -Trustee <adminusers@emailaddress> -AccessRights SendAs -Confirm:$false

       

      In summary :

      1. Extract the list of all Bookings : get-mailbox -RecipientTypeDetails scheduling
      2. Add this permission : Add-MailboxPermission -Identity <bookingmailbox@emailaddress> -User <adminusers@emailaddress> -AccessRights FullAccess -Deny:$false -AutoMapping:$false
      3. Add this last permission : Add-RecipientPermission -Identity <bookingmailbox@emailaddress> -Trustee <adminusers@emailaddress> -AccessRights SendAs -Confirm:$false

       

      And I create a little script to find booking without staff on it:

       

      $AllBookingsMailbox = get-mailbox -RecipientTypeDetails scheduling
      
      foreach ($BookingMailbox in $AllBookingsMailbox)
      {
      $Permissions = Get-MailboxPermission -Identity $BookingMailbox.Identity
      $NbPermissions = $Permissions.Count
      #If only 2 permissions that is the default ones
      If ($NbPermissions -eq 2)
      {
      Get-MailboxPermission -Identity $BookingMailbox.Identity |Format-List
      }
      }

       

       

    • MSCommunity's avatar
      MSCommunity
      Copper Contributor

      SubhamKSinha I tried all that but when I try to apply any changes, they don't apply.  I don't want to delete the site, I want to add someone else as admin.  The only way I've been able to get close to what I want to do, is to make a copy of the site, and then everything works fine.

  • Ken_VUB's avatar
    Ken_VUB
    Brass Contributor
    Make someone else owner of the bookings page? but it should be able the keep bookings calenders running at department level when the original owner is leaving the org.
    • ddmurrayjr's avatar
      ddmurrayjr
      Copper Contributor
      How do you make someone else the owner? I've tried accessing bookings calendars and I get 'you don't have access to this...'. My account is a global admin. Any help appreciated; I find it difficult to find any administrative info on this app.

Resources