Dear @cleber_pcarv
Did you get chance to look at below Wiki article which will help you understand the active and inactive accounts and identities and how to set it through rule, you will find best practices.
Understanding active and inactive accounts and identities: IIQDisabled - Compass
Refer the below relevant topic solutions: