<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: arcpy.DisconnectUser non-administrator user in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189747#M10712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tara, did you ever find a resolution to this?&amp;nbsp; We are having the same issue, but with 10.2.1 and an Oracle db back end on our sde.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2017 21:01:27 GMT</pubDate>
    <dc:creator>DarrylKlassen1</dc:creator>
    <dc:date>2017-12-07T21:01:27Z</dc:date>
    <item>
      <title>arcpy.DisconnectUser non-administrator user</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189744#M10709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;We are attempting to&amp;nbsp;execute&amp;nbsp;arcpy.DisconnectUser before running a nightly compression of a geodatabase. But when running arcpy.DisconnectUser, we are intermittently receiving an error stating that &lt;EM&gt;the connection information provided was for a non-administrative user. &lt;/EM&gt;The geodatabase uses dbo-schema and we have confirmed that the geodatabase administrator is a member of the sysadmin and process admin server roles.&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;Our SDE maintenance scripts fail periodically due to this issue similar to this post: &lt;A _jive_internal="true" data-containerid="2046" data-containertype="14" data-objectid="180900" data-objecttype="1" href="https://community.esri.com/thread/180900"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;https://community.esri.com/thread/180900&lt;/SPAN&gt;&lt;/A&gt;. SDE is running v10.3.1 with a SQL Server 2012 back-end. The script runs from a batch file/scheduled task&amp;nbsp;on a VM that has ArcGIS 10.4.1 installed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:18:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189744#M10709</guid>
      <dc:creator>TaraDeRosa</dc:creator>
      <dc:date>2017-11-02T16:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.DisconnectUser non-administrator user</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189745#M10710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Under the direction of this discussion (&lt;A href="https://community.esri.com/thread/92948"&gt;https://community.esri.com/thread/92948&lt;/A&gt;&amp;nbsp;) I added the 'processadmin' grant to the server role of the login I was using and the script worked as expected.&amp;nbsp; Sysadmin should take care of that role grant as well but it worked in my case (which didn't already have a sysadmin role).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 16:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189745#M10710</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2017-11-16T16:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.DisconnectUser non-administrator user</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189746#M10711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use an admin user&amp;nbsp; &amp;nbsp;with Database Authentication not OS&amp;nbsp;&lt;SPAN&gt;Authentication, it might work with you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2017 13:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189746#M10711</guid>
      <dc:creator>AhmadSALEH1</dc:creator>
      <dc:date>2017-12-01T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.DisconnectUser non-administrator user</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189747#M10712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tara, did you ever find a resolution to this?&amp;nbsp; We are having the same issue, but with 10.2.1 and an Oracle db back end on our sde.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:01:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189747#M10712</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2017-12-07T21:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.DisconnectUser non-administrator user</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189748#M10713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darryl. We are actually still battling this problem and have&amp;nbsp;opened an&amp;nbsp;ESRI support ticket.&amp;nbsp;The arcpy.disconnectuser will work for several days and then unexpectedly fail with the same error as above. The script is run&amp;nbsp;from a batch file using a windows-authenticated admin user&amp;nbsp;and the python script references&amp;nbsp;a sysadmin/processadmin SDE database connection. What we are working on now is granting the windows user SQL permissions so that the scheduled task and database connection run as the same user. We are testing that tonight to see if the scripts works successfully and will monitor for several days. I will report back our findings after that time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189748#M10713</guid>
      <dc:creator>TaraDeRosa</dc:creator>
      <dc:date>2017-12-07T21:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.DisconnectUser non-administrator user</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189749#M10714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tara, &lt;/P&gt;&lt;P&gt;we are having similar issues, except more often than not, the script fails to disconnect the users, and there for our database compress doesn't fully work.&amp;nbsp; We too are running it through a BAT file on a scheduled task.&amp;nbsp; I also have a ticket open with ESRI, which is who pointed me to this thread.&amp;nbsp; I will also keep you posted if we resolve anything.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Darryl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:33:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189749#M10714</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2017-12-07T21:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.DisconnectUser non-administrator user</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189750#M10715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darryl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are also experiencing the exact same issue. In our case some scripts will throw the error and some will not. All scripts are scheduled with the same user and all scripts use the same *.sde file. One script though refuses to work as intended when run as a scheduled task. When run manually and not Run As Administrator it works just fine. Please respond back if you hear anything. This just started happening on our new environment Windows Server 2012 OS, ArcGIS 10.5.1, SQL 2016.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 13:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189750#M10715</guid>
      <dc:creator>KenCarrier1</dc:creator>
      <dc:date>2017-12-18T13:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.DisconnectUser non-administrator user</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189751#M10716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will do Ken.&amp;nbsp; My issue isn't the scheduled task, but I have had issues with that in the past.&amp;nbsp; The scheduled task would run - the .bat file would run, but the Python script within the .bat file didn't.&amp;nbsp; The solution we came up with was in the Actions tab - you have to put the full path to the .py script in the 'Star in (optional):' dialog - even if it is in the .bat file path or elsewhere.&amp;nbsp; We also quoted the program, script.&amp;nbsp; See screen shot attached.&amp;nbsp; Once we did this - the python script began running again.&amp;nbsp; We used to not have to do this, but something changed (windows update?) and we had to debug.&amp;nbsp; Not sure if this will help you or not, but might be worth a try.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="391102" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/391102_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darryl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 00:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-disconnectuser-non-administrator-user/m-p/189751#M10716</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2017-12-19T00:23:47Z</dc:date>
    </item>
  </channel>
</rss>

