<jupyter_start><jupyter_text>Changing ownership of initiativeThis guide demonstrates the process of reassigning an initiative (or site for Hub Basic or Enterprise) to another user. This script not only changes the ownership of the initiative and site items, but also the associated teams and other items that are included in the initiative's content library.Note: Only a user with the `administrator` role of the ArcGIS Online organization that contains the initiative can perform this action.<jupyter_code>from arcgishub.hub import Hub
myhub = Hub("https://www.arcgis.com", "mmajumdar_dcdev")
i2 = myhub.initiatives.get('2b6e5862bac042559d3845a45f729547')
i2.item
i2.reassign_to('manushi.majumdar')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06584362139917696, 'fraction_numerical': 0.037037037037037035, 'mean_word_length': 6.604166666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '260443', 'license': 'Apache-2.0', 'n_tokens_mistral': 228, 'n_tokens_neox': 212, 'n_words': 81, 'path': 'examples/For arcgishub library/Reassign initiative to another user.ipynb', 'repo_name': 'Esri/hub-py', 'size': '729'}