Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

User role assignments log

Posted on by 20

Is there a log table where I can see the user information that assigns roles to users in AX 2012 ?

For example, how do I get the user information that assigns the Accountant role to x users. Does anyone have information ?

  • Suggested answer
    YY Lim Profile Picture
    YY Lim 960 on at
    RE: User role assignments

    You need to write query to get it.

    Go to SQL: (change the AXPRDDB to your AX database name)

    select sur.USER_ [User Id], sr.AotName, case when left(sr.Name, 1) = '@' then xr.Text else sr.NAME end as [Name], sur.VALIDFROM, sur.VALIDTO

    from AXDB.dbo.SECURITYUSERROLE sur

    inner join AXDB_model.dbo.SecurityRole sr  on sur.SECURITYROLE = sr.RecId

    left join AXDB_model.dbo.ModelElementLabel xr on (case when

    left(sr.NAME, 1) = '@' then (case when cast(SUBSTRING(sr.NAME, 5, 7) as int) = xr.LabelId and SUBSTRING(sr.NAME, 2, 3) = xr.Module then 1 else 0 end) else 0 end) = 1 and xr.Language = 'en_us'

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans