Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Bulk-update each existing appointment’s staffMemberIds to the replacement staff GUID during a controlled booking-page maintenance window; do not repurpose the placeholder by changing its name and email address.
Why changing the staff record is unsafe
bookingStaffMember.id is read-only, while displayName and emailAddress are editable. The email address is documented as a contact/confirmation address, but Microsoft does not document changing it as transferring the staff record’s identity or associating it with another Microsoft 365 account. Personal-calendar availability applies only “if the staff member is a Microsoft 365 user,” with no documented promise that an email PATCH performs that linkage.^1^^2^
Although existing appointments reference the staff GUID, retaining that GUID by editing its email should not be treated as a supported identity-transfer mechanism.
Safe migration sequence
Run a pilot with one replacement and a small set of appointments first.
- Inventory and export
- Record each placeholder GUID, replacement employee, affected services, and appointment IDs.
- Retrieve appointments for a bounded date range with:
GET /solutions/bookingBusinesses/{id}/calendarView?start=2026-11-22T00%3A00%3A00Z&end=2027-12-31T23%3A59%3A59Z - Follow every
@odata.nextLink; otherwise, hundreds of appointments may not all be processed. The calendar view is the documented date-range operation.^3^
- Prevent concurrent customer bookings
- Use a short maintenance window and temporarily make the affected booking page or services unavailable to customers.
- Do not migrate while customers can book: adding the replacement before removing the placeholder can expose a fifth resource, while reassigning appointments first can free the placeholder for new bookings.
- If taking the entire page offline is unacceptable, remove the placeholder from the affected service first. This temporarily reduces future capacity instead of increasing it.
- Add each employee as a new staff member
- In Shared Bookings → booking page → Staff → Add new staff, search for and select the employee from the organization directory. This is the documented path that populates the staff record from the organizational account.^4^
- Record the newly created Bookings staff GUID.
- Keep Events on Microsoft 365 calendar affect availability enabled if personal-calendar free/busy should prevent double-booking.
- Reassign appointments
- PATCH each affected appointment, replacing only the placeholder ID while preserving any other assigned staff IDs:
PATCH /solutions/bookingBusinesses/{business-id}/appointments/{appointment-id} Content-Type: application/json { "@odata.type": "#microsoft.graph.bookingAppointment", "staffMemberIds": ["replacement-staff-guid"] } -
staffMemberIdsis explicitly updateable, and a successful update returns204 No Content.^5^ - If the pilot rejects assignment because the replacement is not yet assigned to the service, keep the page unavailable, add the replacement to the service, immediately complete reassignment, and then remove the placeholder.
- PATCH each affected appointment, replacing only the placeholder ID while preserving any other assigned staff IDs:
- Verify before reopening
- Re-read every migrated appointment and confirm:
- the placeholder GUID is absent;
- the intended replacement GUID is present;
- appointments with multiple staff retained all unrelated IDs;
- start/end times, service, customer, and meeting information are unchanged.
- Confirm each affected hour exposes no more than four bookable staff.
- Remove the placeholder from the service and then reopen the page.
- Re-read every migrated appointment and confirm:
For bulk processing, Graph JSON batches support up to 20 requests per batch. Each response must be checked individually; throttled requests can return 429 within an otherwise successful batch.^6^
A PowerShell update pattern is:
Import-Module Microsoft.Graph.Bookings
Connect-MgGraph -Scopes "BookingsAppointment.ReadWrite.All"
foreach ($item in $migrationRows) {
if (!$item.AppointmentId -or !$item.NewStaffId) {
throw "Incomplete mapping for migration row"
}
$body = @{
"@odata.type" = "#microsoft.graph.bookingAppointment"
staffMemberIds = @($item.NewStaffId)
}
Update-MgBookingBusinessAppointment `
-BookingBusinessId $businessId `
-BookingAppointmentId $item.AppointmentId `
-BodyParameter $body -ErrorAction Stop
}
Treat this as the update core, not a complete migration script. Production automation should also handle pagination, duplicate mappings, multiple existing staff IDs, retries, audit output, and post-update reads.
Notifications and calendar invitations
Microsoft documents that changing a booking in the Web app triggers staff and customer emails.^7^ The API exposes optOutOfCustomerEmail, but its documented meaning is that the customer does not wish to receive confirmations—not a general administrator-controlled “silent update” guarantee.^5^
Therefore, neither notification suppression nor preservation of the existing Outlook invitation without an update is established for staff reassignment. Test one non-production appointment with the same service and notification settings. If zero customer communication is mandatory, obtain Microsoft 365 support confirmation before changing the live appointments.
Permissions
Delegated BookingsAppointment.ReadWrite.All is the least-privileged permission documented for appointment updates; staff updates require delegated Bookings.ReadWrite.All.^5^^2^ Delegated Bookings permissions are listed as not requiring administrator consent, but tenant consent policies can still prevent an administrator from granting them without tenant-admin assistance.^8^
No documented setting has been established that makes a placeholder permanently unbookable while continuing to count its old appointments against service capacity. Empty working hours might make a staff member unavailable, but its effect on this migration should be tested before production rather than assumed.
References