Ian Grieve gives us a SQL View To Select User, Company and Security Role Assignment
SQL View To Select User, Company and Security Role Assignment | azurecurve
SQL & DataInstall, Upgrade & Admin
Archived post from 2014. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.