When you are creating a user account, you will find the option to set an expiry date for the account. The account will automatically get deactivated on the expiry date.