To enable or disable a user account:
Setting up automatic disabling of inactive external user accounts
You can use the organization-level settings to specify when inactive external user accounts are disabled. You can also set an email to be sent to users before their user account is automatically disabled.
