what roles are best. I worked as dev once for b2b, never got to meet anyone but the kanban board.
Alternately, instead of starting a new career, you could ask friends and family for an introduction where they work and just go with your original idea of shadowing people. Most SMB owners I know would be happy to let a software developer analyze their process and brainstorm about useful software. Just give them a perpetual free license for helping you develop it. They might even be interested in helping you bootstrap it. Business owners are often looking for a good investment.
Working tech support will tell you what real users are having trouble with and sometime they have really great ideas for features.