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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How to determine Power User from SQL

(0) ShareShare
ReportReport
Posted on by 65,271

Hi all,

I know this is possible because my personal hero, Victoria Yudin, has done it. Well, I've gone a little brain dead tonight and my query is not working as I meant to design it :).

So here's my question, what is the appropriate SQL query that will return a list of folks who are Power Users in Dynamics GP security? I will probably be embarrassed by the simplicity of the answer, but I'll accept embarrassment for simplicity!

I hope to wake up later today with the answer waiting for me. Bless you all!

Leslie

 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Victoria Yudin Profile Picture
    22,769 on at

    Leslie,

    You are too kind. :-) Here is a query that will give you the user ID / company combinations that have the POWERUSER role:

    select a.USERID [User ID], b.CMPNYNAM Company  

    from DYNAMICS..SY10500 a

    inner join DYNAMICS..SY01500 b

    on a.CMPANYID = b.CMPANYID

    where SECURITYROLEID = 'POWERUSER'

    Let me know if you need anything else on this.

  • L Vail Profile Picture
    65,271 on at

    Thank you Victoria! You're the best,

    These are the same tables I'm using (these and about 6 more), it's good to see there isn't some secret field stored in some other table that I've missed. Now I know I have a join problem somewhere!

    Thanks again,

    Leslie

  • Community Member Profile Picture
    on at

    This minor mod adds the user name:

    select a.USERID [User ID], c.USERNAME [User name], b.CMPNYNAM Company  

    from DYNAMICS..SY10500 a

    inner join DYNAMICS..SY01500 b

    on a.CMPANYID = b.CMPANYID

    inner join DYNAMICS..SY01400 c

    on a.USERID = c.USERID

    where SECURITYROLEID = 'POWERUSER'

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans