01-17-2023 01:10 PM - edited 01-17-2023 01:11 PM
I am working on a python script to migrate users from one cluster to another. I am able to change the value of home cluster and the IM&P enable user value, but I haven't figured out how to clear the primary and IPCC extensions. This is what I was trying.
# Execute the updateUser request
resp = source_axl.updateUser(
userid = userid,
#associatedDevices = None,
homeCluster = False,
imAndPresenceEnable = False,
primaryExtension = None,
ipccExtension = None
)
It tried setting the extensions to {} or [], but no joy.
Solved! Go to Solution.
01-18-2023 07:45 AM
I opened a thread in one of the DevNet forums and got the answer I needed.
Here is the solution in python.
resp = source_axl.updateUser(
**{ 'userid': userid,
'homeCluster': 'false',
'imAndPresenceEnable': 'false',
'primaryExtension': {
'pattern': '',
'routePartitionName': '',
},
'ipccExtension': {
'_value_1': '',
'uuid': '',
},
}
)
01-18-2023 07:45 AM
I opened a thread in one of the DevNet forums and got the answer I needed.
Here is the solution in python.
resp = source_axl.updateUser(
**{ 'userid': userid,
'homeCluster': 'false',
'imAndPresenceEnable': 'false',
'primaryExtension': {
'pattern': '',
'routePartitionName': '',
},
'ipccExtension': {
'_value_1': '',
'uuid': '',
},
}
)
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: