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 :
Finance | Project Operations, Human Resources, ...
Answered

Setting SQL 'sa' account to PowerUser

(0) ShareShare
ReportReport
Posted on by 75,854 Moderator

Here is a first. Client is upgrading from GP 2015 to GP 18.4.1384. They removed almost all rights to 'sa' in GP. So when I tried to log into GP on a new server I can log in as 'sa' but I cannot do anything.  I cannot log as any of the users because the passwords have changed. Is there any way to set 'sa' as a PowerUser on the new server?

Categories:
  • Suggested answer
    Derek Albaugh Profile Picture
    Microsoft Employee on at

    Does the SY10500 table show both DYNSA and sa as POWERUSER for each company database present in the SY01500 table?

    I haven't tried manually inserting into this table, if you don't have a PowerUser that you can login to GP and grant via the User Security window.

    If you're unable to login to GP as 'sa' due to the password changing, can you reset the sa password in SSMS and then login to GP?  the sa password isn't encrypted like the other GP users, so we can change the password in SQL for 'sa' while we cannot without being prompted to change the password again when logging into GP, like other users.

    Let me know if this helps or not, or we can see what other options we may have.

    Thanks

  • Richard Wheeler Profile Picture
    75,854 Moderator on at

    Both sa and DYNSA are in the SY10500 as POWERUSER. The problem is they have removed POWERUSER from both of these. Is there another table that assigns the roles?

    If not, they will need to go into the old GP and reassign and then take fresh backups.

  • Suggested answer
    Derek Albaugh Profile Picture
    Microsoft Employee on at

    I'm not sure then........the SY10500 table is what security roles are assigned to the users.

    Other than that, searching the system tables for 'POWERUSER' the only other tables mentioned are SY09100 which is more a description of the security role and then the SY10500.

    Unlike other security roles, it doesn't even exist in the SY10600 table, as PowerUser role is more hard-coded within the dictionary files to give users access to everything.

    I'm curious as to how they would've done what they apparently have done, by removing all permissions from the PowerUser security role?

  • Richard Wheeler Profile Picture
    75,854 Moderator on at

    I think what they did was create a user called PowerUser.  It appears that their reseller was playing around with security in the back-end.

  • Verified answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,157 Most Valuable Professional on at

    Hi Richard

    You will need to fix this via the backend in SQL.

    Using GP Power Tools' Resource Finder I have confirmed that there are only two tables you need to look at.

    pastedimage1638505995861v1.png

    select * from SY09100 where SECURITYROLEID = 'POWERUSER'

    Security Role ID Security Role Name Security Role Description Security Role Type Created User ID Created Date Modified User ID Modified Date Workflow Status Security Role Name Modified Security Role Description Mod Workflow Origin Company
    POWERUSER POWERUSER POWERUSER 1 sa 6/10/2020 1/01/1900 00:00:00 9


    select * from SY10500 where SECURITYROLEID = 'POWERUSER'

    User ID Company ID Security Role ID
    DYNSA -1 POWERUSER
    DYNSA 1 POWERUSER
    sa -1 POWERUSER
    sa 1 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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 266 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 217

#3
Subra Profile Picture

Subra 164 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans