Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-MgBookingBusiness Returns Zero Results #2507

Closed
YuriySamorodov opened this issue Dec 29, 2023 · 2 comments
Closed

Get-MgBookingBusiness Returns Zero Results #2507

YuriySamorodov opened this issue Dec 29, 2023 · 2 comments
Assignees
Labels
no-recent-activity Service issue status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close

Comments

@YuriySamorodov
Copy link
Contributor

YuriySamorodov commented Dec 29, 2023

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

@petrhollayms
Copy link

Hi @YuriySamorodov ,

I see that the Graph API only returns two attributes (id and displayName) but the objects shall be retrieved, https://learn.microsoft.com/en-us/graph/api/bookingbusiness-list?view=graph-rest-1.0&tabs=http

Given that the underlying Graph API did not return an error, it might be issue on the API side.

Can you get the data when using Graph Explorer or Invoke-MgGraphRequest? https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/invoke-mggraphrequest?view=graph-powershell-1.0

@petrhollayms petrhollayms added Service issue status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Jun 11, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-recent-activity Service issue status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close
Projects
None yet
Development

No branches or pull requests

3 participants