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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Adding a role to all users within Dynamics GP using an SQL statement.

(0) ShareShare
ReportReport
Posted on by

Hey all...

Is there a way to add a particular role to all users within my Dynamics GP setup via a SQL script/statement/query? I've been a googling, but have not found any success.  Any help would be appreciated.

Thank you in advance.

JP

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    babubaskaran@outlook.com Profile Picture
    12 on at

    Hi,

    I am not sure how this can be done through SQL but if its just one role which you wanted to assign to all users, just write a macro which will be faster and correct.  

  • Suggested answer
    Ian Grieve Profile Picture
    22,784 on at

    A SQL update would be possible as there is a table which holds the link between the user table and the Security Roles table, but updating in this way is not recommended as it is easy to corrupt the table.

    A macro might not be simple due to the scrolling window containing the tasks which can be assigned to the user.

  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    Yeah, can be done through SQL.

  • Suggested answer
    Victoria Yudin Profile Picture
    22,769 on at

    Another option may be to just add the permissions to the DEFAULTUSER role, which every user has.

  • Suggested answer
    L Vail Profile Picture
    65,271 on at

    Hi JP,

    I've done this by updating the SY10500 table which is the table that holds the Roles Assigned to Users. Here's my understanding of the security tables:

    SY09000 --Task Master

    SY09100 --Role Master

    SY09400 --Security Object Resource Descriptions

    SY09200 --Alt/Mod forms and reports ID Master

    SY10000 --User Security (this is a VIEW)

    SY10500 --Roles assigned to Users

    SY10550 --Alt/Mod ID Assigned to Users by Company

    SY10600 --Tasks assigned to Roles

    SY10700 --Operations assigned to Tasks

    SY10750 --Operations assigned to Default User Task

    SY10800 --Alt/Mod F&R asigned to Alt/Mod report ID

    SY60100 --User Access

    syCompanyImage -- Company Images Blob Table

    syReportTemplate --Report Templates Blob Table

    Kind regards,

    Leslie

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans