I've gotten a long way following the advice given by smart people like @mbarone and @KaneG and @OmerM to get the __cloud:UserId and the AlteryxGallery.windowsIdentys table. Then hit a wall I hope some smart people can help me get over.
The userid I get from the __cloud:UserId when I run the gallery app is not quite exactly the same as one that is coming from the AlteryxGallery.windowsIdentys table. Snip below shows my userid coming from the table and the __cloud:Userid. I'm getting legitimate looking values that are oh so close, but not matching.

I saw another post that discovered he was getting crossed up between his QA and Prod databases but we don't have others that I am aware of. Are there other __cloud variables that could help me debug this?
Ideas are appreciated.