Security

 View Only
  • 1.  Entra ID authorization filter

    Posted Jun 27, 2025 05:45 AM

    Hello,

    I've been working through an issue where Entra ID Authorization isn't pulling any attributes at all in some scenarios.  I believe I've narrowed it down to UPN's who do not contain an email field, or who's email field is different than their UPN.

    It looks like the filter within the Entra ID Authorization config on the Clearpass side is actually excluding results from being shown in this scenario.

    users:users/?$select=userPrincipalName,displayName,id,accountEnabled,companyName,createdDateTime,department,employeeId,lastPasswordChangeDateTime,registeredDevices&$filter=mail eq %{Authentication:Username};group:/users/%{users:id}/memberOf?$select=displayName,id,groupTypes

    Does anyone know the true purpose of why that filter exists and if there is any way to safely mitigate that so authorization attributes are pulled successfully for every user?

    Thanks!



  • 2.  RE: Entra ID authorization filter

    Posted Jun 27, 2025 06:14 AM

    Kevin,

    The query is to filter search in Entra for the specific authentication request. The default filter search in Entra based on the mail attribute where the input is the authentication username. This is all based on the Microsoft Graph API. When Entra doesn't result any data in most cases the username doesn't exists in Entra. Can you share more details about the scenario when no data is returned?



    ------------------------------
    Willem Bargeman
    Systems Engineer Aruba
    ACEX #125
    ------------------------------



  • 3.  RE: Entra ID authorization filter

    Posted Jun 27, 2025 08:36 AM

    Hey Willem,

    Thanks for the info.

    I'm able to reproduce this issue on any service where I apply Entra ID authorization, and the UPN(email address) is used in the authentication method. in this specific use case its happening on our SSO service for policy manager access.

    We use admin accounts for logging into systems with elevated access. Most of these admin accounts do not have an e-mail account associated with them because they just don't need it, and we didn't want to waste the license. Because of that, the e-mail field is blank in Entra.


    My hunch is because this e-mail field is blank, the filter is dropping the authorization request because the user's email does not match their UPN. (its blank)


    If I repeat the same process on another admin account that DOES have an email account, everything works as expected and we get authorization results.

    Beyond this, we have users from various acquisitions where their E-mail field does not match their UPN in Entra as well. I do not have a scenario to test one of those yet as I'm still working on deploying clearpass. But we may very well run into the same issue there as well.

    Let me know if I can provide additional info and thanks for the assist!




  • 4.  RE: Entra ID authorization filter
    Best Answer

    Posted Jun 27, 2025 08:49 AM

    Because the default filter is based on the mail field Entra would not give any response. Please try to update the Entra filter to the userPrincipleName field like this

    users:users/?$select=userPrincipalName,displayName,id,accountEnabled,companyName,createdDateTime,department,employeeId,lastPasswordChangeDateTime,registeredDevices&$filter=userPrincipalName eq %{Authentication:Username};group:/users/%{users:id}/memberOf?$select=displayName,id,groupTypes


    ------------------------------
    Willem Bargeman
    Systems Engineer Aruba
    ACEX #125
    ------------------------------



  • 5.  RE: Entra ID authorization filter

    Posted Jun 27, 2025 10:08 AM

    That worked perfectly thank you!