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

[AADRoleSettings] Code does not process ActivateApprover parameter correctly when the approver does not exist #5423

Closed
ykuijs opened this issue Nov 19, 2024 · 1 comment · Fixed by #5425 or #5435
Assignees
Labels
Bug Something isn't working Entra ID

Comments

@ykuijs
Copy link
Member

ykuijs commented Nov 19, 2024

Description of the issue

The code relies on a try/catch when looking for the provided approvers to detect when the approver does not exist. However when using the filter parameter of Get-MgUser/Get-MgGroup, an exception is never thrown.

This code has to be changed to check for $null instead.

Microsoft 365 DSC Version

Dev

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

Verbose logs showing the problem

Environment Information + PowerShell Version

@ykuijs ykuijs self-assigned this Nov 19, 2024
@ykuijs ykuijs added Bug Something isn't working Entra ID labels Nov 19, 2024
@ykuijs
Copy link
Member Author

ykuijs commented Nov 19, 2024

Working on it

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
Projects
None yet
1 participant