I switched to SDE user but still got same error message. Thanks!
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
Hi, Josh
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!
Amy
import arcinfoimport arcpy
# Variables: sde_Server = "c:\\Users\\user\\AppData\\Roaming\\ESRI\\Desktop10.1\\ArcCatalog\\msdgc@msdtest.sde"
arcpy.DisconnectUser(sde_Server, "ALL")
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
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")
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.