I was asked on another post (https://answers.laserfiche.com/questions/184018/Feature-Request-Forms-Teams-and-LFDS-Users-and-Groups-as-a-Data-Source) to share some views that I have set-up in my LFForms database in order to query items about LFForms Teams, Roles, and Users for field population/form routing.
I decided to post these as a separate discussion post in order to keep from crowding that other post.
These were all created in forms 10.2, but I assume they'll work in later versions assuming the structure of teams/roles/users isn't drastically changed.
Feel free to post your own code here as well!