Skip to content

[Bug]: "[TenantError] Unable to get tenant information when external user is used to authenticate" #156

@olivierdumon

Description

@olivierdumon

What happened?

Error message after authentification :
[TenantError] Unable to get tenant information: Exception setting "tenantName": "The property 'tenantName' cannot be found on this object. Verify that the property exists and can be set."
At C:\Program Files\WindowsPowerShell\Modules\monkey365\0.95.5\core\tenant\Get-TenantInformation.ps1:153 char:13
+             throw ("[TenantError] {0}: {1}" -f "Unable to get tenant  ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : OperationStopped: ([TenantError] U...nd can be set.":String) [], RuntimeException
+ FullyQualifiedErrorId : [TenantError] Unable to get tenant information: Exception setting "tenantName": "The property 'tenantName' cannot be found on this object. Verify that the property exists and can be set."

How to reproduce it
Steps to reproduce the behavior:

  1. What command are you running?
Invoke-Monkey365  -Instance  Microsoft365  -Collect AdminPortal,ExchangeOnline,MicrosoftTeams,Purview,SharepointOnline  -ScanSites https://xxxxxxx.sharepoint.com -IncludeEntraID  -ForceMSALDesktop -Verbose  -InformationAction Continue -Compress  -ExportTo HTML
  1. See error
Image

Expected behavior
HTML result report

From where are you running Monkey365?
Please, complete the following information:

  • Resource: Workstation
  • OS: Windows 11 Pro 24H2
  • PowerShell Version : 5.1.26100.4202
  • Monkey365 Version: 0.95.5

Additional context
The login used has admin access to several tenants.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions