Hi Pedro,
if you are using DocuWare Cloud, this is not possible.
In DocuWare on-premise however, you can allow SQL in the administration once. After that, it is possible to create index value profiles using an SQL statement. This SQL statement can be very complex and use multiple joins. In the end, it has to return the DocIDs of all documents the profile should grant access to.
You may find a KB article or old forum posts discussing this topic if you fiddle with the search a bit.
Hope this helps.
Greetings from Germany,
Simon H. Hellmann
DocuWare System Consultant