sec:role-get-default-permissions( $role-name as xs:string ) as element(sec:permission)*
Returns a sequence of permission elements corresponding to the role's default permissions.
Parameters | |
---|---|
role-name | The name of a role. |
http://marklogic.com/xdmp/privileges/role-get-default-permission
If a role with name $role-name is not found, an error is raised.
This function must be executed against the security database.
(: execute this against the security database :) xquery version "1.0-ml"; import module namespace sec="http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:role-get-default-permissions("Developer") => <sec:permission xmlns:sec="http://marklogic.com/xdmp/security"> <sec:capability>update</sec:capability> <sec:role-id>16363340809666818373</sec:role-id> </sec:permission> <sec:permission xmlns:sec="http://marklogic.com/xdmp/security"> <sec:capability>read</sec:capability> <sec:role-id>16363340809666818373</sec:role-id> </sec:permission>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.