Azure Ad-Connect enables accounts which have been blocked via AAD

Liam Jones 126 Reputation points
2022-09-23T23:20:29.727+00:00

Hi all,

I work for an MSSP and we have clients whereby we cannot access their on-premises infrastructure.

When we lock accounts out via Azure Active Directory, the Azure AD-Connect sync enables them after it syncs from the on-premises Active Directory. As I mentioned we have no access to their on-prem to block the accounts in AD and going through their internal IT team would be a nightmare.

I am just wondering what would the best solution to this problem be? I've read up on filtering but I think I am correct in thinkning that doesn't filter what attributes to sync but what accounts to sync.

Here are the current settings for AD Connect:

244417-image.png

Any help greatly appreciated. Thank you in advance!

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,917 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,622 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cristian SPIRIDON 4,471 Reputation points
    2022-09-24T04:54:06.737+00:00

    Hi @Liam Jones ,

    You can set up a group for this kind of accounts that create a Conditional Access policy that block access to all cloud apps for that group:

    https://learn.microsoft.com/en-us/azure/active-directory/conditional-access/howto-conditional-access-policy-block-access

    And then you can add the needed account(s) to that group.

    Hope this helps!

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 43,966 Reputation points
    2022-09-26T15:15:06.113+00:00

    Hello there,

    There is no bi-directional sync, you will have to block in on-premises. This is by design.

    For example if an account is disabled on-premise, the status will be synced to AAD to prevent logins, but if an account is disabled in AAD, the next sync between on-premise and cloud will re-enable to account in AAD, restoring sign-in access for the account.

    -------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments