web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Users by Role, License Type and Legal Entity Access

(0) ShareShare
ReportReport
Posted on by 35

Hi guys,

   

I've been trying to put together a list of all our active users, with information on their roles, what license type they require and what legal entities they have access to, but I'm struggling to get my head around the license tables in SQL.

   

So far I've got this:

Select userId.ID,userId.NAME,securityRole.AOTNAME AS Role,
   ISNULL(internalOrganization.NAME,'All') as Legal_Entity
   from userInfo userid

   inner JOIN SECURITYUSERROLE UserRole
   on UserRole.USER_ = userid.ID
   inner JOIN AX_Dynamics_UAT_model.dbo.SECURITYROLE securityRole
   on securityRole.RecId = UserRole.SecurityRole
   LEFT JOIN OMUserRoleOrganization roleOrganization
   on roleOrganization.SecurityRole = UserRole.SecurityRole
   AND roleOrganization.USER_ = userid.Id
   LEFT JOIN DIRPARTYTABLE internalOrganization
   on internalOrganization.RECID = roleOrganization.OMINTERNALORGANIZATION

where userid.ENABLE = '1'

order by userid.ID ASC

     

     

This gives me everything except the license type. I know you can get the license type from the Named User License Count report, but I can't work out how to put it into my query. Can anyone offer any advice?

Apologies if the query is badly formatted, the forum post removed my formatting

Seal

*This post is locked for comments

I have the same question (0)
  • Munib Profile Picture
    2,500 on at

    Have a look here as to what I have done. Just used standard license miner to build the temp table and pull data that I need.

    dynamicsnavax.blogspot.com/.../analyse-license-types-ax-2012.html

    License type is built up to the role based on the objects under it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans