Hi Gismoe,
This python script should work to set the permissions appropriately. Just swap out the path to your server connection info, FDS name and username.
Code:
# Purpose: Change user privileges on a dataset
# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create(9.3)
try:
# Set the name of the feature dataset, feature class, or table to change privileges on.
objName = 'ADMIN.FDS'
# Set the name of the user or role to grant privileges to.
username= 'FC_EDIT'
# Process: Update user privileges
gp.ChangePrivileges("Database Connections/Connection to Server.sde/" + objName, username, "GRANT", "GRANT")
except:
# If an error occurred while running a tool, print the messages
print gp.GetMessages()
Hope this helps,
Russell
Bookmarks