- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 11:34 AM
I have a scoped app where I need to check if the logged in user is in a certain team. As gs.getUser().isMemberOf() doesn't work in a scoped app, I moved that to a script include. But gs.getUser() still doesn't work as expected, the user shows as 'com.glide.sys.User@...........' when writing to system logs. As a result gs.getUser().isMemberOf() always returns false.
I could query the system tables but as I don't have the correct user object I'm not sure that will work either. Does anyone have a workaround for this?
Thanks
Ron
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 11:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 12:16 PM
I've changed properties on the flow to run as "user who initiated the session" instead of "system". Now gs.getUser works as expected.
Thanks for your input!
Ron