Oct 04 2021
08:56 AM
- last edited on
Jan 14 2022
03:24 PM
by
TechCommunityAP
Oct 04 2021
08:56 AM
- last edited on
Jan 14 2022
03:24 PM
by
TechCommunityAP
We are in need of having expiration date for Azure AD User accounts. How do we acomplish that?
Oct 04 2021 09:36 AM
Oct 04 2021 10:46 PM
Oct 05 2021 02:15 AM
Oct 05 2021 06:21 AM
Oct 06 2021 01:56 AM
SolutionOct 06 2021 07:43 AM
Dec 07 2022 10:47 AM
Not trying to revive a dead thread here, but anyone looking for this should see a new attribute on their user accounts called "employeeLeaveDateTime." I believe that this attribute did not exist prior to the introduction of Lifecycle Workflows, which is in public preview but requires an Azure AD P2 license. If you have P2 licensing, you can utilize Lifecycle Workflows to accomplish account expiration. But for anyone else you should be able to interact with employeeLeaveDateTime using the Graph API. This would allow you, for instance, to set an expiration date by running a Logic App on a recurring schedule and when the date hits you can disable the account.
Feb 16 2023 09:30 AM
Feb 16 2023 12:54 PM
Feb 20 2023 12:12 PM
Apr 06 2023 01:44 AM - edited Apr 06 2023 01:49 AM
@infocloud posting AI generated and unverified content that you didn't test and that doesn't even work (the parameter doesn't even exist)... Why are you doing this? You are not gaining anything from it. In fact you are wasting your own, but more importantly, everyone else's time. Maybe you didn't know but AI can often make up stuff so always best to verify.
Jul 28 2023 12:43 AM
@infocloud
I do not see '-AccountExpirationDate' switch with Set-AzureADUser cmdlet
I also do not see AccountExpirationDate attribute when getting user details using Get-AzureADuser
Dec 21 2023 07:40 PM
Feb 05 2024 03:42 AM
Oct 06 2021 01:56 AM
Solution