I have customer question about having ability to give usser role for specific period of time. Generally the requirement is to automatically pick up role and access after some specific time. User could have several such roles. I'm looking for available options.
Right now it is not specified how to obtain time period. I'm thinking about obtaining this information during request for access. Next at the approval workflow for role or account (possible to request role without account) set some date/time attribute with value based on time period information and approval date. After that periodically run life cycle rule only for users with those specific roles and comparing date/time attribute with current date, and finally suspending account and picking up role.
First problem is with time period - it's possible that customer would like to have option to grant role only for a couple of hours. The period for LCR would be quite short.
Second is I'm newbie and don't know where to start and in which object set timestamp. Person or account. Because it is possible to have multiple time roles it would be better to set this parameter in account related to role?
Any suggestions how to best fulfill customer requirements? Is it possible to obtain this without LCR?