[MarkLogic Dev General] Does xdmp:document-add-permissions
givearole the requested access permission on all documents in
adirectory?
Frank Sanders
Frank.Sanders at marklogic.com
Tue Dec 2 15:57:31 PST 2008
As long as inherit permissions is set to true on the database, any documents
created within that directory *after* your command is executed will be
readable by business-role. Any docs created before setting the permissions
for business role on the directory will need to be updated, as Danny points
out.
-fs
-----Original Message-----
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Tuesday, December 02, 2008 6:05 PM
To: General Mark Logic Developer Discussion
Subject: RE: [MarkLogic Dev General] Does xdmp:document-add-permissions
givearole the requested access permission on all documents in adirectory?
It only modifies the permissions for the specified URI, whether that URI
is a document or a directory. If you want to add a permission to each
document in the directory, you must update each document's permissions.
-Danny
-----Original Message-----
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Tim
Meagher
Sent: Tuesday, December 02, 2008 2:59 PM
To: 'General Mark Logic Developer Discussion'
Subject: [MarkLogic Dev General] Does xdmp:document-add-permissions give
arole the requested access permission on all documents in adirectory?
For example, will the following command give the role "business-role"
read
access to all the documents in "/Directory-URI-Root/" or do permissions
need
to be set for each individual document?
xdmp:document-add-permissions(
"/Directory-URI-Root/", xdmp:permission("business-role", "read"))
Thx,
Tim
_______________________________________________
General mailing list
General at developer.marklogic.com
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
General at developer.marklogic.com
http://xqzone.com/mailman/listinfo/general
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4245 bytes
Desc: not available
Url : http://xqzone.marklogic.com/pipermail/general/attachments/20081202/6d284920/smime-0001.bin
More information about the General
mailing list