getuserid() and roles not working

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?

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

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