<div dir="ltr"><div dir="ltr">I'm sorry to bother you more.<div>With the examples provided I can easily set up my role permissions, but it works on layers only: the accessControlFilter.layerPermissions doesn't seem to take care of layer groups in the GetCapabilities request.</div><div>If the layer group has 0 layers because none of the sublayers is readable by the authenticated user, it still remains in the GetCapabilities response.</div><div><br></div><div>Is it possible to exclude a group with 0 layers in the GetCapabilities response?</div><div>Or better:</div><div>Is it possible to apply the AccessControl plugin to a layer group?</div><div><br></div><div>Thanks in advance</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 21 giu 2021 alle ore 19:23 Marco Casalboni <<a href="mailto:casalbonim@gmail.com">casalbonim@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">I followed the examples and It works likes a charm, many thanks</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il lun 21 giu 2021, 10:19 Luigi Pirelli <<a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Old but good article (in Spanish) by German Carrillo about contiguring access credential granularity to QGIS Server data<div><br><div><a href="https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/" rel="noreferrer" target="_blank">https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/</a><br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>Luigi Pirelli<br><br>**************************************************************************************************<br>* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" rel="noreferrer" target="_blank">https://www.linkedin.com/in/luigipirelli</a><br>* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" rel="noreferrer" target="_blank">http://gis.stackexchange.com/users/19667/luigi-pirelli</a><br>* GitHub: <a href="https://github.com/luipir" rel="noreferrer" target="_blank">https://github.com/luipir</a><br>* Book: <a href="https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition" rel="noreferrer" target="_blank">Mastering QGIS3 - 3rd Edition</a></div><div>* Hire a team: <a href="http://www.qcooperative.net" rel="noreferrer" target="_blank">http://www.qcooperative.net</a><br>**************************************************************************************************</div></div></div></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 21 Jun 2021 at 10:07, Marco Casalboni <<a href="mailto:casalbonim@gmail.com" rel="noreferrer" target="_blank">casalbonim@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thank you for the accurate informations, this will be very helpful.<div><br></div><div>One more thing: is it possible to filter the wms GetCapabilities request's layer list according to an authenticated user (or role)?</div><div><br></div><div>regards,</div><div><br></div><div>Marco</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 18 giu 2021 alle ore 03:29 Germán Carrillo <<a href="mailto:carrillo.german@gmail.com" rel="noreferrer" target="_blank">carrillo.german@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Marco,<div><br></div><div><br></div><div>I published a blog where I configured permissions based on user roles for a QGIS Server workshop.</div><div>Keep in mind that it was just a demo. It was based on some plugin examples by Alessandro Pasotti.</div><div><br></div><div>One single project, one single WMS, several user roles and different permissions (based on spatial and non-spatial filters) per role.</div><div><br></div><div>You can read here [1] the instructions.</div><div>They are unfortunately only in Spanish. Even though I created an English version, we are migrating the whole website at the moment, so it's unavailable.</div><div>I hope you manage to translate them.</div><div><br></div><div><br></div><div>BTW, according to your use case, you would need to focus on "layerPermissions" (see the link Thomas posted earlier in this thread).<br></div><div><br></div><div><br></div><div>Regards, </div><div><br></div><div>Germán</div><div>------------</div><div>[1] <a href="https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/#qs-10" rel="noreferrer" target="_blank">https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/#qs-10</a></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue, 17 jun 2021 a las 16:45, Thomas Gratier (<<a href="mailto:osgeo.mailinglist@gmail.com" rel="noreferrer" target="_blank">osgeo.mailinglist@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>You may create a QGIS Server plugin to manage your permissions e.g <a href="https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py" rel="noreferrer" target="_blank">https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py</a><br></div><div><br></div><div>Regards</div><div><br></div><div dir="ltr">Thomas</div></div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br clear="all"><div><br></div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div></div></div></div></div></div></div></div>
</blockquote></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>