Forum Discussion
Get all AA/CQ with Resource Accounts
Hello
Is it possible to have a script that pulls out all AA/CQ with resource accounts.
I would like to pull it to find out which of the AA/CQ do not have resource account.
If there is no resource account the field would be empty.
Regards
JFM_12
1 Reply
- Sayali-MSFT
Microsoft
Hello JFM_12,
To identify Auto Attendants (AA) and Call Queues (CQ) that do not have Resource Accounts assigned, you must correlate voice apps, resource accounts, and their associations using Microsoft Teams PowerShell. This involves retrieving all Auto Attendants, Call Queues, and Resource Accounts, mapping them using Get-CsOnlineApplicationInstanceAssociation, and exporting the results to identify any missing assignments. Since neither Microsoft Graph nor the Teams Admin Center currently provides this relationship in bulk, PowerShell remains the only supported method for performing this type of tenant-wide audit.
You must use:
Get-CsOnlineApplicationInstanceAssociation
Reference Document-
1. Manage resource accounts for service numbers - Microsoft Teams | Microsoft Learn
2. PowerShell cmdlet reference for Auto attendants and Call queues - Microsoft Teams | Microsoft Learn
3. Get-CsOnlineApplicationInstanceAssociation (MicrosoftTeams) | Microsoft Learn
4. Get-CsAutoAttendant (MicrosoftTeams) | Microsoft Learn