i am trying to change a set of users licence in AGOL from Creator to Field Worker
this is what i have but it dosent seem to work (no error or anything)
from arcgis.gis import GIS
gis = GIS("home")
source_users = gis.users.search(query="username:xyz")
for user in source_users:
print(user.username)
print(user.userLicenseTypeId)
user.userLicenseTypeId = 'fieldWorkerUT'
print(user.userLicenseTypeId)