Currently I'm working on an application that is making queries on a given MarkLogic database, the default one as we can say, but to provide same values on the screen I have to check the role of the logged user before displaying. This can be done querying the Security database, the one provided by MarkLogic itself, but I don't know how to explicitly declare on the query that I want to query that particular database instead of the default one. Do you know some command that could help me? Thank you!
Query on a database different from the one working on with XQuery
215 views Asked by MissArmstrong At
1
There are 1 answers
Related Questions in SECURITY
- Can MVC.NET prevent SQL-injection at razor or controller level?
- Forgotten password reset page: should the user need to enter a username/email as well?
- Dynamic roles list in CustomAuthorize ASP MVC
- Access roles from multiple applications
- How to Fix TLS CBC Incorrect Padding Abuse Vulnerability on Windows 2003 Server
- Evernote Web Clipper and Content Security Policy
- Invalidate user credentials when password changes
- Spring Boot MVC non-role based security
- Correct Captcha behaviour on error
- Is macro more secure than static const if I don't want someone to know or change the hardcode value?
Related Questions in XQUERY
- XQuery "flattening" an element
- XQuery: Select a node in the context of a variable
- Need to remove timezone from current-date() xquery
- Basic Xquery CRUD samples equivalent to SQL Select, Insert, Delete or Update
- MS SQL XQuery xs:base64Binary returns NULL
- SQL Server XML Update Serialized Array based on compound XQuery
- BaseX XQuery error: root(): no context value bound
- MarkLogic 8 - XQuery write large result set to a file efficiently
- MarkLogic 8 - After upgrade we are getting 405 Method Not Allowed on a GET
- Conditionally creating formatted string from elements and attributes in XQuery
Related Questions in MARKLOGIC
- How to transform multiple documents into a single document using MarkLogic's REST API?
- MarkLogic 8 - Stream large result set to a file - JavaScript - Node.js Client API
- MarkLogic 8 - Node.js Client API - Can I do a SPARQL Query?
- Search documents with parent-child context : Marklogic
- MarkLogic 8 - XQuery write large result set to a file efficiently
- MarkLogic 8 - After upgrade we are getting 405 Method Not Allowed on a GET
- REST Error during extract document data : Marklogic
- MarkLogic 8 - Rest Endpoint Returning XML even though we specify JSON
- Marklogic 8 xml search
- MarkLogic Samplestack installation issue (Execution failed for task ':dbTeardown')
Related Questions in USER-ROLES
- displaying navbar according to user roles and permisions laravel
- Rails - Using different views for anonymous vs. logged in users: Bad idea?
- dynamic cancan from database with complex conditions
- Reset or recover a user's password by an admin using a username in SimpleMembership
- Allow "customer" user role to upload files in front-end with acf_form
- How to add capability to upload file in wordpress
- how to give access for users (editors actually only for one specific editor such as id is '3333') to leaky paywall's subscribers list - Wordpress
- How to create a separate admin interface for blogs in rails
- I can't get the pages to load user roles from cookies
- Mongo - How can I find out what roles the user I am connected as has? How can I assign a user full read-write access?
Related Questions in SECURITY-ROLES
- Dynamics CRM restrict access by Owner Team
- Role/Previlige on a particular record in dynamics crm 2011
- Query on a database different from the one working on with XQuery
- Spring Security Role Prefix and Custom User Details Service
- Dynamics CRM security role privileges on Email entity
- AuthorizeAttribute with Roles but not hard-coding the Role values
- Role Based Access Control (RBAC) cares about permission or roles?
- Hiding a link in the sitemap based on security role in crm 2011 using javascript
- Does the Roles Manager cache data for a custom roles provider, and can I clear this cache?
- Retrieve Keycloak Roles in reactive Spring Gateway security
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can use eval to query against another database:
See: https://docs.marklogic.com/xdmp:eval
Also, if you are querying the security database specifically, then instead of
xdmp:databaseyou can usexdmp:security-database.