Skip to main content

Posts

Showing posts with the label Licensing

Named user license count report [AX 2012 R3 CU9]

It looks like there are some updates to the license count reports in CU9. First you will notice a new report called “ Named User License Counts History ”. Lets go through both. 1. Named User License Counts This was a report that existed since the initial release of AX2012 but some additions have been made. Now you have the users (which was released sometime in R2) and in R3 CU9 we have another addition. We now see the users role, not just the license type. 2. Named User License Counts History This report takes a from and to date. Then displays a summary type report of what the actual is and what you are licensed for.

“Error in getting SID” when running Named user license count report [AX 2012]

Recently I tried running the Named user license count report and got this error. “Error in getting SID” From the error I know what the problem is. One of the users can not be found in Active directory. I wrote a quick job to find me the invalid users. static void navax_findBadUserNames ( Args _args ) { UserInfo userInfo ; container con ; ;    while select forUpdate userInfo where userInfo . Enable && userInfo . AccountType != UserAccountType :: ADGroup { con = SysUserLicenseMiner :: getUserRoles ( [ userInfo . Id , userInfo . company ] ) ; if ( conLen ( con ) == 0 ) { warning ( strFmt ( "Userid: %1, username: %2" , UserInfo . networkAlias , UserInfo . name ) ) ; } } } You will get something like this in the infolog.

AX 2012 R3 License types (CAL) for security roles

Below is the list of security roles and what license type they are. Role License type Accountant Enterprise Users Accounting manager Enterprise Users Accounting supervisor Enterprise Users Accounts payable centralized payments clerk Enterprise Users Accounts payable clerk Enterprise Users Accounts payable manager Enterprise Users Accounts payable payments clerk Enterprise Users Accounts payable positive payment clerk Enterprise Users Accounts receivable centralized payments clerk Enterprise Users Accounts receivable clerk Enterprise Users Accounts receivable manager Enterprise Users Accounts receivable payments clerk Enterprise Users Budget clerk Enterprise Users Budget manager Enterprise Users Buying agent Functional Users Chief executive officer Enterprise Users Chief financial officer Enterprise Users Collections agent Enterprise Users Collections manager Enterprise Users Compensation and benefits manager Enterprise Us...

Blank workspace on open of AX 2012 with Feature pack

I recently upgraded an environment and everything ran fine. After I finished the upgrade I tried opening AX and the workspace just showed nothing. No menus, just a blank workspace. This was an issue with the the Retail license key. It enabled a check during start up which failed. I had to run this script to insert a record to tell it, that it is finished. static void InsertRetailCheckListFinished ( Args _args ) { RetailSetupLog retailSetupLog; #SysCheckList   retailSetupLog = RetailSetupLog :: find ( classStr ( SysCheckList_Upgrade ) , #CheckListFinished ) ;    if ( retailSetupLog. RecId == 0 ) { retailSetupLog. clear ( ) ; retailSetupLog. Description = #CheckListFinished; retailSetupLog. Name = classStr ( SysCheckList_Upgrade ) ; retailSetupLog. RetailBuild = RetailSetupLog :: retailNo ( ) ; retailSetupLog. insert ( ) ;   info ( strFmt ( "Inserted build %1" , Retail...

Analyse license types [AX 2012]

I wanted to do a quick analysis on the license types in AX and how the menu items affect them (by count). This is extremely useful when you are creating new roles too. I created a pivot table displaying the Roles on the Row, the License types on the Column and the Count of the Entry points (Menu items) as the value. This allows you to drill into the counts and find which menu items have make up a license type. Below is a quick job to export a csv file. Which can be opened up in excel to create the same pivot table. static void checkLicenseTypeByRoleEntryPoint ( Args _args ) {     SysSecRoleEntryPointsTmp    srepTbl;     SysUserLicenseMetadataTmp   slsaTmp;     SecurityRole                securityRole;     CommaTextIo                 commaText...

Turn off industry specific license configuration [AX 2012]

One thing to be aware of. In AX 2012 the root module configuration key cannot be turned off from the "License configuration" (in the figure below the locked licence configuration is represented with red pad lock). You have to go to "License information" and blank out the license code field (*****). If you want to re-enable it, then import the license key again and restart the AOS. Alternatively you can just type the license code again. Customer license files don’t expire (unless they are demo licenses) and with AX 2012 licensing model; they get everything. If additional users are purchased a new license is issued and this could re-enable to the license code.

Named user license counts [AX 2012]

There is a report under System admiration > Reports > Licensing > Named User License Counts . This report contains information about the users who are assigned to security roles in Microsoft Dynamics AX. The report analyzes the roles and privileges that are assigned to each user and then calculates the number of licenses that are required for each user type. To actually get data to show up on this report you have to set up a batch job to run periodically. Its a little hidden. You can copy and paste the job below. Then run it to create the batch job. This sets up a batch job to run once a week. Which seems a bit much. I think once a month on a weekend is sufficient. static void LicenseMinerCreateBatchJob(Args _args) {     SysUserLicenseMiner::createBatchJob(); } Alternatively set up a batch job to run SysUserLicenseMiner class. Some good info on licensing. http://dev.goshoom.net/en/2011/09/dynamics-ax-2012-licensing/