import arcinfo import arcpy # Variables: sde_TestServer = "\\\\computer\\c$\\Users\\user\\AppData\\Roaming\\ESRI\\Desktop10.2\\ArcCatalog\\sde@TestServer.sde" #Disconnect Users arcpy.DisconnectUser (sde_TestServer, "ALL")
Id like to have this handy tool as well. But I was running into an error, says Connection information provided was for a non-administrative user. But the user "msdgc" can disconnect user from ArcCatalog. would you please help, thanks!
sde_Server = "c:\\Users\\user\\AppData\\Roaming\\ESRI\\Desktop10.1\\ArcCatalog\\firstname.lastname@example.org"
Traceback (most recent call last):
File "C:\Program Files (x86)\SystemScheduler\disconnectuser.py", line 8, in <module>
File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\__init__.py", line 1040, in DisconnectUser
return gp.disconnectUser(sde_workspace, users)
File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\geoprocessing\_base.py", line 498, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
RuntimeError: Connection information provided was for a non-administrative user
Are you using a SDE user Connection to establish this? It needs to be either the SDE user or possibly the SA user for it to work properly, preferably the SDE user
I switched to SDE user but still got same error message. Thanks!
Does the sde user have "processadmin" fixed server role?