225
Views
2
Comments
getuserid() and roles not working
Question

We have a module (Outsystems 10) that is always returning 0 from getuserid() and fails to show pages that are not anonymous even when a user is already logged in to another module. I suspect that we've missed something when setting up the theme or the module itself so that the user id is not accessable but I can't see any difference between a module where getuserid() works and the one where is doesn't. Is there any information on what needs to be setup in a module for unified login to work?

UserImage.jpg
Chris Howland

Found the answer - very simple, I had not set the user provider to the 'User' module in the module properties. All works now!

2025-08-22 10-19-44
Pramod Jain
 
MVP

Great ,,you get it by your own.:)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.