msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Get-MgBookingBusiness Returns Zero Results

Open YuriySamorodov opened this issue 1 year ago • 0 comments

Describe the bug Both Get-MgBookingBusiness and Get-MgBetaBookingBusiness return no results even with -All parameter used

To Reproduce Steps to reproduce the behavior:

  1. Open PowerShell 5.x or PowerShell 7.x (not PowerShell ISE) under Global Admin account
  2. Connect to MS Graph with Connect-MgGraph
  3. Connect to Exchange Online with Connect-ExchangeOnline
  4. Execute $mgbookings = Get-MgBookingBusiness -All
  5. Run $exobookings = Get-Mailbox -RecipientTypeDetails SchedulingMailbox
  6. Compare $mgbookings.count and $exobookings.count

Expected behavior Get-MgBookingBusiness should return a lot of items

Debug Output

PS C:\Users\yuriy.samorodov> Get-MgBookingBusiness -All -Debug

DEBUG: [CmdletBeginProcessing]: - Get-MgBookingBusiness begin processing with parameterSet 'List'.
DEBUG: [Authentication]: - AuthType: 'Delegated', TokenCredentialType: 'InteractiveBrowser', ContextScope: 'CurrentUser', AppName: 'Microsoft Graph Command Line Tools'.
DEBUG: [Authentication]: - Scopes: [Application.Read.All, Application.ReadWrite.All, Bookings.Manage.All, Bookings.ReadWrite.All, Calendars.Read.Shared, ChannelMessage.Read.All, Chat.Create, Chat.Read, Chat.ReadBasic, Chat.ReadWrite, ChatMessage.Read, ChatMessage.Send, Device.ReadWrite.All, DeviceManagementManagedDevices.ReadWrite.All, DeviceManagementServiceConfig.ReadWrite.All, Directory.Read.All, Directory.ReadWrite.All, Group.Read.All, Group.ReadWrite.All, GroupMember.ReadWrite.All, openid, Policy.ReadWrite.Authorization, profile, RoleManagement.ReadWrite.Directory, User.Read, User.Read.All, User.ReadWrite.All, email].

DEBUG: ============================ HTTP REQUEST ============================
 
HTTP Method:
GET
 
Absolute Uri:
https://graph.microsoft.com/v1.0/solutions/bookingBusinesses
 
Headers:

FeatureFlag                   : 00000043
Cache-Control                 : no-store, no-cache
User-Agent                    : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.19045; en-US),PowerShell/5.1.19041.3803
Accept-Encoding               : gzip
SdkVersion                    : graph-powershell/2.11.1
client-request-id             : 9a59b64b-1807-4f40-8f14-b592b19bdf2b
 
Body:

DEBUG: ============================ HTTP RESPONSE ============================
 
Status Code:
OK
 
Headers:
Transfer-Encoding             : chunked
Vary                          : Accept-Encoding
Strict-Transport-Security     : max-age=31536000
request-id                    : 0095d43b-90e5-41e3-b1b0-5249b2ae1aff
client-request-id             : 9a59b64b-1807-4f40-8f14-b592b19bdf2b
x-ms-ags-diagnostic           : {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"FR1PEPF00000D36"}}
OData-Version                 : 4.0
Date                          : Fri, 29 Dec 2023 11:08:29 GMT
 Body:
{
  "@odata.context": "[https://graph.microsoft.com/v1.0/$metadata#solutions/bookingBusinesses"](https://graph.microsoft.com/v1.0/$metadata#solutions/bookingBusinesses%22),
  "value": []
}

DEBUG: [CmdletEndProcessing]: - Get-MgBookingBusiness end processing.

PS C:\Users\yuriy.samorodov> Stop-Transcript

Module Version CleanShot 2023-12-29 at 15 43 46

Name    : Microsoft.Graph.Bookings
Version : 2.11.1

Environment Data CleanShot 2023-12-29 at 15 38 08

PSVersion                      5.1.19041.3803                                                                                                         
PSEdition                      Desktop                                                                                                                
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                
BuildVersion                   10.0.19041.3803                                                                                                        
CLRVersion                     4.0.30319.42000                                                                                                        
WSManStackVersion              3.0                                                                                                                    
PSRemotingProtocolVersion      2.3                                                                                                                    
SerializationVersion           1.1.0.1                                                                                                                

Screenshots CleanShot 2023-12-29 at 15 32 43

Additional context Please note I am running all cmdlets under Global Admin and made sure Azure app has been assigned Bookings.Manage.All and Bookings.ReadWrite.All permissions

YuriySamorodov avatar Dec 29 '23 11:12 YuriySamorodov