I need to programmatically change ownership of a view. This requires that I first find the service with which the view is associated and change the ownership of that service. I had good luck with this until I tried it on content I don't own:
This code produces an empty list. 'check_item' is a feature service view.
source_hfl_list = check_item.related_items(rel_type="Service2Data",direction="reverse")
print(str(source_hfl_list))
I do have admin privileges. Is there any way to get this information that doesn't require me to own the items? I can change ownership in the service itself 'manually' but scaring it up is a bit of a hassle and I'd like to do it from a notebook that accesses the view only.
Thank you,
Randy McGregor