Forum Discussion
RLS en modelo compuesto Direct Query
Hola, estoy intentando usar como base de datos de mis informes un modelo único que he creado con toda la información (lo voy a llamar modelo alfa) y al que me conecto con direct Query. Para poder usar este sistema, necesito poder configurar un RLS de seguridad diferente en cada informe.
En la prueba que he hecho, he creado una tabla importada para definir la seguridad que necesito (ya he visto que no puedo hacerlo sólo conectada al modelo alfa). Esta tabla importada, y sobre la que puedo definir el RLS que necesito, filtra la tabla maestra de los datos del modelo alfa:
Por algún motivo que no soy capaz de ver, este filtro no está funcionando realmente, cuando hago una prueba de visualización NO se filtra nada 😞
Tenéis alguna pista sobre por qué no está funcionando?
Eliminé toda definición de RLS en el modelo alfa, por si eso estaba interfiriendo
Mil gracias
2 Replies
- AnonymousNot applicable
Hi REP_17 ,
You can try to see the following limitations:
For RLS to work, a user needs to have read only permission in the workspace. Members or admins see everything by default. You can give users”Viewer"role in Workspace.
This is the related document, you can view this content:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- REP_17New Member
Hi Anonymous , thank you very much for your comment! This is not the case, the filter is not working even in power bi desktop where you simulate the roles. Moreover, users are all viewers. I think the problem is in the filter, but I don't know why. Maybe because is an imported table filtering a model??
Kind regards