Hi Danny, Not sure what if anything changed, but the role did have that setting and now I'm getting the expected default permissions. Thanks.
Bob From: Danny Sokolsky <[email protected]> Subject: [MarkLogic Dev General] RE: permissions in a pipeline To: General Mark Logic Developer Discussion <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="us-ascii" Sounds like the user does not have default permissions of read, insert, update on the role (call it Role1). Default permissions are on a user or role. One way to accomplish this is to add these default permissions to the role Role1 by going to the Admin Interface, navigating to Role1, scrolling towards the bottom of the screen, and entering the default permissions for Role1 (at least one for update, and probably for read). Then any user that has Role1 will get at least these default permissions. Then the call to xdmp:default-permissions() should not return the empty sequence. -Danny From: [email protected] [mailto:[email protected]] On Behalf Of Runstein, Robert E. (Contr) (IS) Sent: Monday, June 01, 2009 1:23 PM To: [email protected] Subject: [MarkLogic Dev General] permissions in a pipeline Hi, I'm running a pipeline that tries to insert a document with the default permissions of the current user who has a role with read, insert and update permissions. xdmp:document-insert($uri, $doc, xdmp:default-permissions(), $collection) I get an error complaining that I need at least one update permission. When I log xdmp:default-permissions() I get an empty sequence. Providing xdmp:permission("myUserRole", "update") solves the problem but I would rather not hard code the role. I tried to amp the function but that did not seem to work either. Is there a special permission that the user must have to insert within a pipeline? Thanks. Bob Runstein
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
