Temporary access rights automation in Dynamics Ax 2012

I want to develop feature in Ax 2012 to assign and remove temporary user rights access.
Below are my requirements.

  1. new menu items (WSFD/System administration/Common/Users/Users):
    • Dialog name - Assign temporary role
    • Fields - User, Role, From date, to date
    • From date, to date - maximum 6 months
    • Description (enum - debugging, scripting, maintenance, substitution, missing user rights, other)
  • Temporary role log (WSFD/System administration/Common/Users/Users)
    (display log based on user)
    * Create New form and table
    * Buttons - Activate, deactivate
    * Filter - Active, inactive
    * Fields: User ID, User name, User role, From date, To date, Reason, Description, Active
  1. new menu items (WSFD/System administration/Periodic/Users):
  • Temporary role activate/deactivate
    (batch job which will run once per day after midnight. This job will automatically activate or deactivate user rights based on the specified ‘from’ and ‘to’ dates.)
  1. new menu items (WSFD/System administration/Inquiries/Users):
  • Temporary role log - display log for all users

Any inputs to implement this feature are appreciated.
Specifically related to batch job and how to maintain temporary user access rights table.