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

MSFT_AADUser: Bug getting passwordpolicies #2598

Closed
andreasmarx opened this issue Nov 27, 2022 · 0 comments · Fixed by #2641 or #2667
Closed

MSFT_AADUser: Bug getting passwordpolicies #2598

andreasmarx opened this issue Nov 27, 2022 · 0 comments · Fixed by #2641 or #2667
Assignees
Labels
Bug Something isn't working Entra ID V1.22.1109.1 Version 1.22.1109.1

Comments

@andreasmarx
Copy link

Details of the scenario you tried and the problem that is occurring

Passwordpolicy not retrieved because property is missing in $propertiesToRetrieve.

Verbose logs showing the problem

No error/no logs.

Suggested solution to the issue

old code (line 183):

$propertiesToRetrieve = @('Id', 'UserPrincipalName', 'DisplayName', 'GivenName', 'Surname', 'UsageLocation', 'City', 'Country', 'Department', 'FacsimileTelephoneNumber', 'Mobile', 'OfficeLocation', 'TelephoneNumber', 'PostalCode', 'PreferredLanguage', 'State', 'StreetAddress', 'JobTitle', 'UserType')

new code:

$propertiesToRetrieve = @('Id', 'UserPrincipalName', 'DisplayName', 'GivenName', 'Surname', 'UsageLocation', 'City', 'Country', 'Department', 'FacsimileTelephoneNumber', 'Mobile', 'OfficeLocation', 'TelephoneNumber', 'PostalCode', 'PreferredLanguage', 'State', 'StreetAddress', 'JobTitle', 'UserType', 'PasswordPolicies')

The DSC configuration that is used to reproduce the issue (as detailed as possible)

N/A

The operating system the target node is running

N/A

Version of the DSC module that was used ('dev' if using current dev branch)

1.22.1109.1 (Resource code did not change in the newer releases)

@andikrueger andikrueger added Entra ID V1.22.1109.1 Version 1.22.1109.1 Bug Something isn't working labels Nov 28, 2022
@NikCharlebois NikCharlebois self-assigned this Dec 8, 2022
NikCharlebois added a commit to NikCharlebois/Microsoft365DSC that referenced this issue Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Entra ID V1.22.1109.1 Version 1.22.1109.1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants