Scoped access to user/session domain

jeremy_gardner
Tera Expert

Has anybody come up with a work-around to getting a user's domain within their session?   Slightly different than getting the domain off their User > Company > Domain record, since certain users can switch domains.   Looking for a scoped version of gs.getUser().getDomainID().

I liked coryseering's suggestion in this discussion: gs.getUser().getDomainID() not working in scoped application scripts, however it requires inserting a record to set the domain (as mentioned in the last post).   I can make that work, but was hoping there's some other magic I'm overlooking.

Thoughts?

Thanks!

Jeremy

5 REPLIES 5

Hi Jeremy,



I was trying to check if GlideTransaction() API is accessible from scoped app, but unfortunately, it also does not work.


I guess inserting a record is only option then.