Expired accounts still synced on Entra ID

LucasBudas-9886 301 Reputation points
2023-12-22T21:34:18.9733333+00:00

Hi Expert team

How we can sync Expired date on Entra ID and release o365 licence ?

We have many accounts expired but still using a licence.

Thank you in advance for your help

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Thameur-BOURBITA 36,266 Reputation points Moderator
    2023-12-23T08:57:58.37+00:00

    Hi @LucasBudas-9886

    Are you using Entra Connect server ?

    In this case ,you can create a custom synchronization rule to delete Synced account when the user account is expired:

    In Scoping Filter:
    Attribute: accountExpires

    Operator: ISNOTNULL

    Click on Add clause

    Attribute: accountExpires

    Operator: GREATERTHAN

    Value: 0

    Click on Add clause

    Attribute: accountExpires

    Operator: LESSTHAN

    Value: 9223372036854775807

    User's image

    In transformations :
    FlowType: Expression

    TargetAttribute: cloudFiltered
    Source: IIF(([accountExpires])<NumFromDate(Now()),True,NULL) as below:

    User's image


    Please don't forget to accept helpful answer

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.