掲示板

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

6年前 に yang wang によって更新されました。

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

Junior Member 投稿: 80 参加年月日: 15/08/24 最新の投稿
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
6年前 に David H Nebinger によって更新されました。

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

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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!
6年前 に yang wang によって更新されました。

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

Junior Member 投稿: 80 参加年月日: 15/08/24 最新の投稿
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
6年前 に David H Nebinger によって更新されました。

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

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
No complex SQL because it is not going to handle all of the inheritance stuff correctly.










Come meet me at the 2017 LSNA!