# Temporary access rights automation in Dynamics Ax 2012

**URL:** <https://www.dynamicsuser.net/t/temporary-access-rights-automation-in-dynamics-ax-2012/86024>\
**Category:** Developer Forum\
**Tags:** ax-2012\
**Created:** [October 1, 2024, 2:26pm UTC](https://www.dynamicsuser.net/t/temporary-access-rights-automation-in-dynamics-ax-2012/86024 "2024-10-01T14:26:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omkar\_a](https://avatars.discourse-cdn.com/v4/letter/o/3da27b/32.png) [@omkar\_a](https://www.dynamicsuser.net/u/omkar_a)\
**Post date:** [October 1, 2024, 2:26pm UTC](https://www.dynamicsuser.net/t/temporary-access-rights-automation-in-dynamics-ax-2012/86024/1 "2024-10-01T14:26:35Z")

</div>

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

 ![img1](https://us1.discourse-cdn.com/flex023/uploads/dugusers/original/2X/4/4ecf6764df3bd1e6d878c3c0b707a3d6a442f5a4.jpeg)

---

<div class="post-metadata">

**Author:** ![omkar\_a](https://avatars.discourse-cdn.com/v4/letter/o/3da27b/32.png) [@omkar\_a](https://www.dynamicsuser.net/u/omkar_a)\
**Post date:** [October 4, 2024, 11:23am UTC](https://www.dynamicsuser.net/t/temporary-access-rights-automation-in-dynamics-ax-2012/86024/2 "2024-10-04T11:23:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Hardik\_Gupta](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@Hardik\_Gupta](https://www.dynamicsuser.net/u/Hardik_Gupta)\
**Post date:** [September 18, 2025, 8:17am UTC](https://www.dynamicsuser.net/t/temporary-access-rights-automation-in-dynamics-ax-2012/86024/3 "2025-09-18T08:17:55Z")

</div>

Hi Omkar,

That’s a solid requirement and a common need in AX 2012 when dealing with temporary or elevated access. While there’s nothing out-of-the-box, it’s definitely doable with a mix of custom tables, forms, and a batch job.

- Create a table to store temporary role assignments (User, Role, From/To dates, Reason, Status).

- Add a form to manage these records (assign, update, deactivate) and link it under System Admin so it feels native.

- Set up a nightly batch job to activate/deactivate roles automatically based on dates.

- Keep a log table for auditing who had access, when, and why.

We’ve seen similar setups work well for customers, one case was during audits, and the automated activation/deactivation saved a lot of admin effort. The primary goal is to maintain a clean and separate batch logic from core security data.

If you try this and hit roadblocks, feel free to reach out, I’d be glad to share more details at [hardik.gupta@allgrowtech.com](mailto:hardik.gupta@allgrowtech.com)
