FYI - I have an XCC application that loads the documents.  I set the default
permissions for the XCC.net login user (whose default permissions get
applied to each document that gets loaded) in the Security/Users tab with
role/permission pairs for the 4 basic document access permissions:

 


default permissions  --  The default set of permissions used in document
creation. 



role name (capability)





[Keep]


 





executor (execute)





inserter (insert)





reader (read)





updater (update)

 

These roles get applied to each document so that if I want to create any new
roles that have any combination of the basic role permissions, I can do so
without having to update the permissions for each document.  This approach
is pretty simple if I want a user who is part of the reader role to be able
to read all the documents in the database, but I'm not sure this is the best
approach for applying different permissions to groups of documents in the
database.  The good news is that I don't have to recreate
read/insert/update/execute permissions for any documents that have been
loaded.

 

Tim Meagher

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Pritsker,
Galina
Sent: Thursday, February 26, 2009 2:00 PM
To: '[email protected]'
Subject: [MarkLogic Dev General] Permission problem

 

I have about 60000 documents on Mark Logic database. I would like to set up
permission for read and write users

 

In order to do that I am running the following script :

 

for $i in cts:uris() [0 to 60000]

return 

xdmp:document-set-permissions($i, (xdmp:permission("digital-read","read"),

 
xdmp:permission("digital-write","insert"),

 
xdmp:permission("digital-write","update"),

                                   xdmp:permission("digital-write","read")

                                 ))

 

I could not process all documents because getting the following error:

XDMP-EXTIME: Time limit exceeded.

 

So I ran Xquery with small range from 1 to 10000 and so on, but when I login
with user who has read or write privileges there are only 29654 documents
that they can access

 

What  did I do wrong?

 

Thanks,

Galina 

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to