John Lowther offers a Great SQL Script for getting which users have access to which accounts when using account level security
Great SQL Script for getting which users have access to which accounts when using account level security. – Microsoft Dynamics GP Community
Install, Upgrade & AdminSQL & DataDevelopment & Integration
Archived post from 2015. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.