Hi,
I don't think there is a way where we can add permissions to a group/user for only certain amount of time.
You can try adding the permissions to a user/group and have a scheduler which will run and remove the permissions after certain period of time.