Introduce a feature that allows roles to be assigned to users with a specified expiration date. This would enable temporary role assignments for tasks that need to be completed within a certain timeframe. Once the expiration date is reached, the role is automatically revoked, ensuring that permissions do not remain active indefinitely.