How to update a user's first and last name with arcgis python library

798
3
05-29-2018 02:47 PM
deleted-user-pAO6-stmeoAP
New Contributor

according to the API documentation, i should be able to use user.update(first_name='name', last_name='name') to update a user's first and last names. however, it is saying that the function update() has no parameters first_name and last_name. i can however update fullname. (but i still need to update first and last)

0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

moved this post to ArcGIS API for Python‌ to increase your chances of getting an answer

0 Kudos
JohnYaist1
Esri Contributor

Hi thomas - the first_name and last_name parameters were added to the update() function at API release 1.4.0. Can you test that release of the API?

WillHughes
New Contributor III

accounts = gis.users.search(query='*')

accounts[0].update(first_name = 'Mike')

accounts[0].update(last_name = 'Tyson')

0 Kudos