Skip to content

Federated domains always fail password expiry check#1435

Open
brianreidc7 wants to merge 1 commit intomaester365:mainfrom
brianreidc7:patch-6
Open

Federated domains always fail password expiry check#1435
brianreidc7 wants to merge 1 commit intomaester365:mainfrom
brianreidc7:patch-6

Conversation

@brianreidc7
Copy link
Contributor

Changed the query to look only for managed domains.

Description

Changed the query to look only for managed domains. For example a Federated domain appears as follows:

authenticationType : Federated
availabilityStatus :
id : domain.com
isAdminManaged : True
isDefault : False
isInitial : False
isRoot : True
isVerified : True
supportedServices : {Email, Intune}
passwordValidityPeriodInDays :
passwordNotificationWindowInDays :
state :

And the original code checked for a value in passwordValidityPeriodInDays, but this is null for Federated domains

Contribution Checklist

Before submitting this PR, please confirm you have completed the following:

  • 📖 Read the guidelines for contributing to this repository.
  • 🧪 Ensure the build and unit tests pass by running /powershell/tests/pester.ps1 on your local system.

 

Join us at the Maester repository discussions 💬 or Entra Discord 🧑‍💻 for more help and conversations!

Changed the query to look only for managed domains. For example a Federated domain appears as follows: 

authenticationType               : Federated
availabilityStatus               :
id                               : domain.com
isAdminManaged                   : True
isDefault                        : False
isInitial                        : False
isRoot                           : True
isVerified                       : True
supportedServices                : {Email, Intune}
passwordValidityPeriodInDays     :
passwordNotificationWindowInDays :
state                            :

And the original code checked for a value in passwordValidityPeriodInDays, but this is null for Federated domains
@brianreidc7 brianreidc7 requested a review from a team as a code owner February 10, 2026 12:17
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

Successfully merging this pull request may close these issues.

1 participant