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.

Zobacz inne

Jak wybrać firmę do audytu i optymalizacji Dynamics 365?

Czytaj artykuł
Text Link

Migracja z Dynamics AX do Dynamics 365: jak wybrać partnera, koszt i etapy (2026)

Czytaj artykuł
Text Link

Jak wybrać firmę do wdrożenia Dynamics 365: kryteria, koszt i etapy (2026)

Czytaj artykuł
Text Link
Wróć do wszystkich

Porozmawiajmy o Twoim projekcie

Napisz, z czym przychodzisz: wdrożenie, migracja, rozwój systemu albo pytanie, na które szukasz odpowiedzi. Wracamy z konkretną propozycją następnego kroku, nie z prezentacją handlową.

Dziękujemy za wiadomość!
Oops! Something went wrong while submitting the form.
Microsoft AI Builder
Microsoft Copilot Studio
No items found.
No items found.
No items found.