Fórum

Get user list in a site who can view the specified file?

yang wang, modificado 6 Anos atrás.

Get user list in a site who can view the specified file?

Junior Member Postagens: 80 Data de Entrada: 24/08/15 Postagens Recentes
Hi,
Is there any convenient/efficient way to get all users in a site(site member) who can view the given file in the document library(under the same site).
So far, I have to judge every site member's permission for the file.
Thanks in advance.

Yang.
thumbnail
David H Nebinger, modificado 6 Anos atrás.

RE: Get user list in a site who can view the specified file?

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
No.

You can have permissions by being a site member, by role granted either directly or indirectly (through a group, site, user group, team, organization, inheritance).

These permissions are evaluated at runtime when you request access to the document.

But there is no list anywhere of effective users who have access.








Come meet me at the 2017 LSNA!
yang wang, modificado 6 Anos atrás.

RE: Get user list in a site who can view the specified file?

Junior Member Postagens: 80 Data de Entrada: 24/08/15 Postagens Recentes
David H Nebinger:
No.

You can have permissions by being a site member, by role granted either directly or indirectly (through a group, site, user group, team, organization, inheritance).

These permissions are evaluated at runtime when you request access to the document.

But there is no list anywhere of effective users who have access.

Come meet me at the 2017 LSNA!


Thanks David!
The requirement is to send an email to those users(within the site) who can access the give file.
If liferay does not provide any build-in function , I have to verify users one by one for the give file.
Or Is there a feasible way to write some complex sqls directly on the permission tables to speed up this process?
thumbnail
David H Nebinger, modificado 6 Anos atrás.

RE: Get user list in a site who can view the specified file?

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
No complex SQL because it is not going to handle all of the inheritance stuff correctly.










Come meet me at the 2017 LSNA!