How to put email/Azure AD account on expiry at the certain date in Azure AD or in M365?

Vinod Survase 4,781 Reputation points
2023-10-18T17:40:14.13+00:00

How to put email/Azure AD account on expiry at the certain date in Azure AD or in M365?

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Iohann Gessenay 166 Reputation points
    2023-10-18T20:25:07.57+00:00

    If you want to set expiration for guest users (external users), you can configure an expiration policy for guest users in the Microsoft 365 admin center. This doesn't allow for a specific expiry date, but rather sets a policy for the duration after which the guest access will expire.

    For normal Users: In Azure AD or Microsoft 365 (M365), there isn't a built-in feature to set a user's account to expire on a specific date. However, you can achieve this by using a combination of PowerShell scripts and Azure Automation or scheduled tasks. If you want to know how, let me know.

    best regards

    iohann gessenay

    2 people found this answer helpful.

  2. Sandeep G-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2023-10-20T08:44:15.2066667+00:00

    @Vinod Survase

    Thank you for reaching out to us in Microsoft Q&A.

    Currently, this isn't a default feature of Azure AD. We cannot set any expiration for users in Azure AD as of now. If you are syncing users from on-premise AD to Azure AD then it is better to set the expiration in on-premise AD and create a rule in AD connect to disable the account post expiry.

    If you are looking for setting expiry for users in Azure AD then this is not possible as of now.

    However, you can submit feedback in Azure feedback portal for this feature.

    I see that this feedback is already submitted by other customers in feedback portal. You can upvote on the same and this channel is directly monitored by our PM's.

    https://feedback.azure.com/d365community/idea/5d44d790-c525-ec11-b6e6-000d3a4f0789

    Let me know if you have any further questions.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


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.