Skip to content

Catch Conditional Access Policy login failures. #5

@jeff-bb

Description

@jeff-bb

Authenticating to Microsoft Graph API... and Authenticating to Azure Service Management API... could use a catch for login being denied for a conditional access policy.

# Conditional Access Policy

ElseIf($RespErr -match "AADSTS53003")
{
Write-Output "[*] WARNING! The account $username appears to be protected by a Conditional Access Policy."
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions