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

Issue with Components AzureAD and running Get-AzureADUser #55

Open
beigewell opened this issue Nov 13, 2024 · 1 comment
Open

Issue with Components AzureAD and running Get-AzureADUser #55

beigewell opened this issue Nov 13, 2024 · 1 comment

Comments

@beigewell
Copy link

PS C:\WINDOWS\system32> $doc = Get-M365Doc -Components AzureAD
Invoke-DocGraph : The remote server returned an error: (404) Not Found.
At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.3.0\Internal\Collector\AzureAD\Helper\Get-AzureADUser.ps1:19 char:18

  •     $user = (Invoke-DocGraph -Path "/users/$UserId" -Beta)
    
  •              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-DocGraph

Invoke-DocGraph : The remote server returned an error: (404) Not Found.
At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.3.0\Internal\Collector\AzureAD\Helper\Get-AzureADUser.ps1:19 char:18

  •     $user = (Invoke-DocGraph -Path "/users/$UserId" -Beta)
    
  •              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-DocGraph

Invoke-DocGraph : The remote server returned an error: (404) Not Found.
At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.3.0\Internal\Collector\AzureAD\Get-AADPolicy.ps1:140 char:34

  • ... .Objects = (Invoke-DocGraph -Path "/identity/continuousAccessEvaluati ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-DocGraph
@Diddman
Copy link

Diddman commented Dec 12, 2024

I also have the same problem. I think the problem is that when conditional access policies with included or excluded users 'all users' exist, the function to retrieve user information cannot resolve a user object for 'all users'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants