Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.3k stars 217 forks source link

get-aadintaccesstokenForAADgraph: Error You cannot call a method on a null-valued expression. #87

Closed sergioandreslq closed 6 months ago

sergioandreslq commented 6 months ago

Hello team,

I am getting this error when I try to get the token for AADGraph:

image

in tried in PS: ISE, ISE (x86) and PS7, I got the same error

image

the AADInternals was installed with the command: Install-Module -Name AADInternals.

Nothing else had been done.

sergioandreslq commented 6 months ago

Hello team,

I tested with other tenant, In the new tenant, I was able to get the token.

image

So, I will need to check in the sign-in logs in the tenant that present the error to figure out why the command didn't work.

sergioandreslq commented 6 months ago

Fixed using other tenant. It could be a problem with my tenant.