<?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: Setting permission on feature dataset with sdelayer don't work in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507225#M28755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your detailed answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If there is no difference i will use sdetable in future because it supports feature classes and feature datasets.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 16:25:57 GMT</pubDate>
    <dc:creator>gismoe</dc:creator>
    <dc:date>2010-10-21T16:25:57Z</dc:date>
    <item>
      <title>Setting permission on feature dataset with sdelayer don't work</title>
      <link>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507221#M28751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to set permissions on a feature dataset but this results in an error message: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Layer not found (-20).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is may command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;sdelayer -o grant -l FDS,SHAPE -U FDS_EDIT -A SELECT,UPDATE,INSERT,DELETE -i 5153 -s SERVER -u ADMIN -p xxxxxx&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting the permission with ArcCatalog works very well but i want to create a batch to rebuild all my permissions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 11:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507221#M28751</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2010-10-21T11:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Setting permission on feature dataset with sdelayer don't work</title>
      <link>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507222#M28752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;None of the ArcSDE command-line utilities will access any of the geodatabase extensions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;like domains or feature datasets (implemented outside the ken of ArcSDE).&amp;nbsp; You can use &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python to script geodatabase management via ArcGIS (more so at 10.0 than with earlier &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;releases), or manage the indiviual dataset member tables via 'sdetable -o grant'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 11:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507222#M28752</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-10-21T11:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Setting permission on feature dataset with sdelayer don't work</title>
      <link>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507223#M28753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please post an example how to set a permission with a python-script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We use Arcgis Server 9.3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What the difference between setting a permission with&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdelayer -o grant -l featureclass,SHAPE -U FC_EDIT -A SELECT,UPDATE,INSERT,DELETE -i 5153 -s SERVER -u ADMIN -p xxxxxx&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o grant -t -featureclass -U FC_EDIT -A SELECT,UPDATE,INSERT,DELETE -i 5153 -s SERVER -u ADMIN -p xxxxxx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 12:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507223#M28753</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2010-10-21T12:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting permission on feature dataset with sdelayer don't work</title>
      <link>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507224#M28754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In theory, there is no difference between using 'sdetable' and 'sdelayer'.&amp;nbsp; I use 'sdetable'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because it is the proper context (permissions are a property of a table), and because I&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;don't need to know the geometry column name, and because it's less typing.&amp;nbsp; It is possible &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that using 'sdelayer' could, by design, fail to set raster support table permissions if both&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_SHAPE and SE_RASTER columns existed in a table (I would hope it wouldn't, but I only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use 'sdetable', so I wouldn't know).&amp;nbsp; 'sdelayer -o grant' should have been deprecated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at 8.1 and eliminated by 9.0, but doing so would have broken a lot of scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 13:51:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507224#M28754</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-10-21T13:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting permission on feature dataset with sdelayer don't work</title>
      <link>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507225#M28755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your detailed answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If there is no difference i will use sdetable in future because it supports feature classes and feature datasets.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 16:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507225#M28755</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2010-10-21T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting permission on feature dataset with sdelayer don't work</title>
      <link>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507226#M28756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;'sdetable' only supports tables, not feature classes or feature datasets.&amp;nbsp; It just so happens&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that feature classes are modeled as tables, so 'sdetable' can be used on feature class names,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but feature datasets are not modeled as tables, so you can't refer to them at all with 'sdetable'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you fail to grant the same permissions for all the tables comprising a feature dataset, ArcGIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will only acknowledge the minimum permission held in common (logical AND), even if that means&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;no permission at all. All in all, you'd be better off using Python (if it has the requisite hooks at &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9.3.1, which it likely does; I just don't use ArcGIS all that much).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 18:56:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507226#M28756</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-10-21T18:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setting permission on feature dataset with sdelayer don't work</title>
      <link>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507227#M28757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Gismoe, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This python script should work to set the permissions appropriately. Just swap out the path to your server connection info, FDS name and username. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# Purpose: Change user privileges on a dataset

# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create(9.3)

try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the name of the feature dataset, feature class, or table to change privileges on.
&amp;nbsp;&amp;nbsp;&amp;nbsp; objName = 'ADMIN.FDS'
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the name of the user or role to grant privileges to.
&amp;nbsp;&amp;nbsp;&amp;nbsp; username= 'FC_EDIT'

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Update user privileges
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.ChangePrivileges("Database Connections/Connection to Server.sde/" + objName, username, "GRANT", "GRANT")

except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred while running a tool, print the messages
&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.GetMessages()&lt;/PRE&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Russell&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/setting-permission-on-feature-dataset-with/m-p/507227#M28757</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2021-12-11T22:14:16Z</dc:date>
    </item>
  </channel>
</rss>

