r/exchangeserver • • 27d ago

MS KB / Update New Invoke-CalendarEventMigration command running into RBAC issues

Anyone run into this yet? I know the command was just barely released today... Maybe MS messed up in the implementation of it? I am running the command as the global admin.

Here's the command I'm using:
Invoke-CalendarEventMigration -Identity <user> -FromWindowsTimeZoneId "Central Standard Time" -ToWindowsTimeZoneId "Manitoba Standard Time" -QueryStartDate 2026-11-01 -Confirm:$false

Error:
Write-ErrorMessage : ||You do not have permission to access the mailbox '<id here>'. The mailbox is outside your RBAC scope. Please verify you have the necessary permissions.

4 Upvotes

27 comments sorted by

1

u/The_Penguin22 26d ago

The mailbox is outside your RBAC scope. Please verify you have the necessary permissions.

Same here in Alberta. Did you resolve it?

1

u/Cocoamix86 26d ago

Not yet. I have a case open with MS

1

u/Far-County3009 26d ago

I am also using an admin user without a mailbox or license but I still get the error. In Alberta as well

1

u/whitezone 25d ago

So we have found the command works for cloud based users but any users with ADSync fail with the RBAC error.

1

u/Cocoamix86 25d ago

Dang... Majority of users across all tenants we manage are adsync

1

u/sedin26 23d ago

try again, if you haven't.

1

u/sedin26 25d ago

That would appear to be our situation as well. I'm looking into it but please update here if you get a solution, and I'll do the same

1

u/sedin26 23d ago

This has started to work for us now, with no changes on our end.

2

u/keiyoushi 27d ago

Known issue with Canadian customers. Open a support case.

2

u/Zabulon777 27d ago

The reoccurring meeting update still won't be out for a few weeks per Microsoft.

1

u/adixro 27d ago

Hoped to test appointments and single instance for those that dont shift properly for some reason

1

u/hatoke 27d ago

I was receiving the same error until I updated my exchangeonlinemanagement module to the latest version.
However now I get this error "A server side error has occurred because of which the operation could not be completed. Please try again after some time."

1

u/adixro 27d ago

Tried under my Exch Org role and dont even have that command available. Tried with our service connection using cert/app (Manage Exchange as application) that we use for all EXO mbx setup, updates etc and fails with the same error you encountered

1

u/Winter_Active_2182 27d ago

I also don't have the cmdlet available yet. I made a ticket, but no progress so far, the first response is all the things i've already been doing.

1

u/adixro 27d ago

On the first ticket response they asked me to check the roles etc but it makes no sense. Who knows...it rolled out today so maybe something out of sync. Did you got the same questions...check get-managementrole -command invoke-calendar....etc?

1

u/Winter_Active_2182 27d ago

This was my first response:

Reconnect to Exchange Online PowerShell using the latest Exchange Online module, then verify whether the cmdlet is exposed by running Get-Command Invoke-CalendarEventMigration ; this cmdlet is cloud-only, so it should appear in Exchange Online when available. [1]

Confirm your account has permission to run the cmdlet because Exchange cmdlet availability can depend on assigned permissions, and some parameters or cmdlets may not appear if your role assignments don’t include them. [1]

Validate the cmdlet name and expected behavior by checking for Invoke-CalendarEventMigration specifically; it migrates calendar items one mailbox at a time, supports preview mode, and currently applies to single-instance meetings and appointments in the default Calendar folder. [1]

If the steps above didn’t resolve the issue, please provide the following details:

Are you seeing this for a single admin account or multiple admin accounts?

What is the exact output from Get-Command Invoke-CalendarEventMigration or the error returned when you run the cmdlet?

1

u/adixro 27d ago

Ok. I think we just have to wait it out unfortunately.

1

u/adixro 27d ago

This is their first response...More information Requested:

Confirm the execution context - Are you running Invoke-CalendarEventMigration in Exchange Online PowerShell with app-only authentication, and what is the exact error text returned when the cmdlet is invoked? Check whether the issue is tenant-wide or app-specific - Has this same service principal successfully run other Exchange Online cmdlets, and does the problem occur for all target mailboxes or only specific organizers? Verify which RBAC role exposes the cmdlet - In Exchange Online PowerShell, run Get-ManagementRole -Cmdlet Invoke-CalendarEventMigration and then Get-ManagementRoleAssignment for the returned role names to identify which role group or assignment grants access. This is the supported method to find the required RBAC permissions for any Exchange Online cmdlet. [2] Validate application access beyond Exchange.ManageAsApp - Exchange.ManageAsApp enables app-only Exchange Online PowerShell connectivity, but Exchange roles still must be assigned to the service principal within Exchange Online RBAC. Missing Exchange-side role assignments can prevent app-only identities from using specific cmdlets. [3] Compare against expected cmdlet behavior - Invoke-CalendarEventMigration is an Exchange Online cloud-only cmdlet and requires assigned permissions before use; parameter availability can also vary based on the permissions included in the assigned role. If Get-ManagementRole returns no matching role entry for the cmdlet, that points to missing RBAC exposure for the app or tenant customization of roles. [1][2]

1

u/Winter_Active_2182 26d ago

I just heard back from Microsoft:

Thank you for reaching out to Microsoft Support.

I understand that the Invoke-CalendarEventMigration cmdlet is currently not available when you connect to Exchange Online PowerShell.

The initial rollout of this new functionality was planned for this timeframe. However, we are currently tracking an issue affecting the availability of the cmdlet, and a revised rollout plan is being worked on.

The current target for the updated rollout is November 9, 2026. Please note that this is an estimated timeframe and is not guaranteed, as the rollout schedule may change.

We will continue to monitor the progress and keep you updated. Any official customer-facing communication regarding the rollout will also be made available through the appropriate Microsoft 365 communication channels when published.

Thank you for your patience and understanding.

1

u/Warm-Boysenberry7923 27d ago edited 27d ago

Is invoke-calendareventmigration even released yet? What platform are you guys using to run the command ? What is the version of ExchangeOnlineManagement that you are using?

I can't seem to find the cmdlet, I am exchange Admin, is there any additional role I need to assign myself to run the command?

1

u/GohanBelik MSFR SPPRT 27d ago

The command is not on production yet, it should be released by tomorrow once they confirm the rollout

1

u/Winter_Active_2182 26d ago

According to the documentation it was supposed to be in production on Oct 28th. It's still not showing up in our environment, do you have any insights on if the delays are being acknowledged and any sort of ETA?

1

u/rolandpenner 26d ago

I manage several tenants. In some tenants the Invoke-CalendarEventMigration is missing for some of the admin users. In some tenants the Invoke-CalendarEventMigration results in the RBAC error. And in other tenants the command works.

One difference I've noted is that the tenant where I'm getting the RBAC error, the admin user has a mailbox and Exchange license. In the working tenant the admin user does not have a license. Not sure if this is the cause, or just correlation.

1

u/SurprisedMushroom 26d ago

The fact that you have it working in some tenants and not others and some comments here don't even see the command point to the fact that MS is rolling the changes out tenant by tenant. Hopefully the role command and role permissions finish their rollout for everyone before the weekend.

1

u/Joshnv 23d ago

the command was added for my tenant Friday, but showed permission errors for most accounts Fri/Sat.

It appears to be working for most accounts now. Finally.

1

u/The_Penguin22 22d ago

Seems to be working today. So far...

0

u/7amitsingh7 26d ago edited 26d ago

Since the cmdlet was just released today I'd check the Exchange RBAC role assignments and scope for the affected mailbox first. Being a Global Admin doesn't necessarily mean every Exchange cmdlet will pass its mailbox-level permission checks. If the role assignments look correct and the same error persists I'd suspect an issue with the new cmdlet and report it to Microsoft before making any broad permission changes. It would be useful to know whether anyone else is seeing the same behavior.

Are you only looking to update calendar event time zones, or are you also planning to migrate mailboxes between Exchange environments or Microsoft 365 tenants?