Forum Discussion
Thomps_0
Apr 08, 2020Brass Contributor
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 leave...
SubhamKSinha
Microsoft
Jan 31, 2023Thomps_0 ,
Try adding a super user to a booking mailbox. Add staff to Bookings | Microsoft Learn
And then you can successfully delete a booking mailbox as superuser. (Remove-BookingMailbox -Identity SchoolAdmissionPortal2@testbookings22Dec.onmicrosoft.com)
You could also login to bookings UI and add other as staff as a superuser (this can be only done through UI or GRAPH).
MichaelOliv
Feb 01, 2023Iron Contributor
Thanks. I missed that one :
Add-RecipientPermission -Identity <bookingmailbox@emailaddress> -Trustee <adminusers@emailaddress> -AccessRights SendAs -Confirm:$false
In summary :
- Extract the list of all Bookings : get-mailbox -RecipientTypeDetails scheduling
- Add this permission : Add-MailboxPermission -Identity <bookingmailbox@emailaddress> -User <adminusers@emailaddress> -AccessRights FullAccess -Deny:$false -AutoMapping:$false
- 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
}
}