Whats a good UX solution for a user to cover for another user while they go on leave?

I'm currently designing a feature where supervisors monitor various reports. These reports need to be monitored daily. Each user is assigned access to specific groups of reports.

As with any company, users go on leave several times a year. During this time another user will need to cover for the user going on leave.

Currently, what happens is users give access to their colleagues covering for them by sharing their login details. This creates security risks.

I'm trying to design a user flow that would help them achieve this without sharing their login details. Some potential solutions

  • Giving temporary permission to the user going on leave's account.
  • give access to the specific reports for the covering user's account.

are there any better solutions for this? it seems like a common problem enough for there to be a good solution for this already.