microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
691 stars 166 forks source link

Get-MgBetaServicePrincipal returns wrong PreferredTokenSigningKeyEndDateTime values #2533

Open Jbmainson opened 8 months ago

Jbmainson commented 8 months ago

In order to get the expiration date of SAML certificates, i'm using 'Get-MgBetaServicePrincipal' to retreive PreferredTokenSigningKeyEndDateTime value for all the apps:

2024-01-17_15h59_29

For some applications, the value returned by the cmdlet is not accurate:

2024-01-17_16h02_10

The cmdlet Get-MgServicePrincipal doesn't return PreferredTokenSigningKeyEndDateTime property.

Jbmainson commented 3 months ago

Any news ?