We don’t need to do any configuration for this, because once we have terminated an employee after that all the assigned roles will automatically remove.
I hope this blog post was helpful for you. If you have any questions or feedback, please leave a comment below.