Loading TOC...

xdmp.defaultPermissions

xdmp.defaultPermissions(
   [$uri as String],
   [$output-kind as String]
) as Object[]

Summary

Returns the permissions any new document would get if the current user were to insert a document without specifying the default permissions.

Parameters
$uri The document URI to get default permissions.
$output-kind The output kind. It can be either "objects" or "elements". With "objects", the built-in returns an array of objects. With "elements", the built-in returns an array of XML element nodes. The default is "objects".

Example

  xdmp.defaultPermissions("http://example.com/content/foo.json")
  =>
  [
    {
      "permission" : {
        "capability" : "read",
        "roldId" : "324978243"
       }
    },
    {
      "permission" : {
        "capability" : "read",
        "roldId" : "32493478578243"
      }
    },
    {
      "permission" : {
        "capability" : "update",
        "roldId" : "32493478578243"
      }
    }
  ]

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy