What is the best way to get gs.getUser().getDepartmentID() in a scoped script?

Not applicable

I'm trying to set the default value of the department field on a scoped table and this doesn't seem to work since the scoped API is limited, is there a simpler way than a full GlideRecord query?