No items found.

Test or debug with specific user privileges in AX 2012

Sometimes there is a need for developers to test or debug how their solution behave with specific user privileges. Starting from Microsoft Dynamics AX 2012 there is an easy method to do it. To test or debug solution with specific privileges we need:

Step 1

Set up proper privileges on your user account.

Step 2

Switch off system administrator privileges by calling SecurityUtil::sysAdminMode(false);

We need to create and run a job like below:

static void switchAdminMode(Args _args)

{

SecurityUtil::sysAdminMode(false);

}

To go back to system administrator privileges we need to call SecurityUtil::sysAdminMode(true) or just restart Dynamics AX client.

See more

AGA pomaga – poznaj inteligentnego asystenta do przetwarzania zapytań ofertowych: ANEGIS Generative Assistant

Read article
Text Link

Jak z pomocą narzędzi Power Platform, Microsoft Fabric i AI zrealizować plan na cyfrową transformację? ANEGIS Power Center

Read article
Text Link

Obowiązkowy KSeF startuje za 4 miesiące! Umów się na bezpłatne konsultacje i przygotuj swój system na zmiany

Read article
Text Link
Back to all

Let's talk about your project

Let us know what you need: implementation, migration, system development, or a question you’re looking to have answered. We’ll get back to you with a concrete proposal for the next step - not a sales pitch.

Thank you for your message!
Oops! Something went wrong while submitting the form.
Microsoft AI Builder
Microsoft Copilot Studio
No items found.
No items found.
No items found.