I'm trying to post an answer to my own question https://stackoverflow.com/questions/26671712/query-to-find-all-views-charts-owned-or-shared-with-a-user-in-dynamics-2013/26728588#26728588 but I keep getting 'an error occured' in a small red pop-up if I try to post the full text of my procedure . The proc is 70 line long - that's acceptable, right?