Surveys hidden from other survey owners?

More
2 months 1 week ago #218143 by alorenc
Limesruvey v3 

Is there a way to hide the poll from other users without taking away the permission to "view/read" the surveys?

Assumptions:
- we have a defined list of surveys that constitute a template
- we want all users of the admin panel to have access to copy these templates
- and at the same time we want the user to be able to create a poll that other panel users will not be able to see.

Explanation:
We have an organization where the poll can be created by different departments, but once in a while the polls will be created for all departments, we don't want users of those departments to have access to it before publishing.

The current mechanism of depriving all users of the right to "view/read" surveys and broadcasting them from the survey level is difficult to manage. With several hundred panel users, we are not able to organize it efficiently, especially if new ones come or are removed within a month - here even the grouping mechanism does not help.

​​​​​​​PS. if there is a plug for it or it is fixed in a newer version, I would ask for this information.

Please Log in to join the conversation.

More
2 months 1 week ago - 2 months 1 week ago #218219 by DenisChenu
In 5.X : you can create a "Template" survey groups and give all user read+export rights on it.

And give only Create + Import survey right,
then : you have exactly what you want.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
Last edit: 2 months 1 week ago by DenisChenu.
The following user(s) said Thank You: alorenc

Please Log in to join the conversation.

More
2 months 1 week ago #218265 by alorenc
Thanks, I'll check it out.

Please Log in to join the conversation.

More
2 months 1 week ago #218303 by alorenc
This solution is a compromise but still has one major downside, you still have to click Create + Import Permissions for All Users to this Group.

I can create a group "Everyone" and add all users to it. And then in the "Templates" survey group, set their permissions. However, updating this data, for example adding new users to the "Everyone" group and re-importing them into the "Templates" survey group, will overwrite the permissions of previously added users.

I noticed that Survey Groups have an "Always Available" option. If it is not selected, the group is not displayed in the list for other users. It would be great if the polls included in this group were also not visible by default. Only after granting the "Create + Import" permission will it be visible to the specified user. The question is, can it be designed that way? Because I do not know the context of the "Always available" option.

Please Log in to join the conversation.

More
2 months 1 week ago #218307 by DenisChenu
Always available : any user can select this Group in dropdown. Any user can «read» this group.

> I can create a group "Everyone" and add all users to it. And then in the "Templates" survey group, set their permissions. However, updating this data, for example adding new users to the "Everyone" group and re-importing them into the "Templates" survey group, will overwrite the permissions of previously added users.

Can you give more detail ?
I think it's same behaviour in Survey right ?

user group are more a shortcut system here to select whole user.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
2 months 1 week ago - 2 months 1 week ago #218308 by alorenc
Will the "Always Available" mechanism in the future be able to assume that selected surveys placed in this group will also not be visible to users?

For me, it would be logical that if a group is hidden, the survey in that group are invisible.

The above solution made it possible to individually grant a specific person access to the survey in a group hidden with these rights Create (preview survey) Import (copy survey).

Maybe it should be a proposal to the development department?
Last edit: 2 months 1 week ago by alorenc.

Please Log in to join the conversation.

More
2 months 1 week ago #218309 by alorenc
>Can you give more detail ?
I think it's same behaviour in Survey right ?

The answer to the question above was that the groups here act as a user list that is imported into a survey or survey group (permissions).

Group changes (removing / adding users) do not update these changes in the list under Survey/Survey Group Permissions. Because the assignment does not follow the group IDs, but after importing the group content into the permission list.

This creates one fundamental problem, if we have a group "Everyone" in which we store a list of all users and assign them to the list of permissions, then we give new permissions, then the permissions added to the previously added users on the "Everyone" list will have overwritten permissions.

Example:
Permission list Survey group templates includes:
User 01 with permissions: Create, Read, Import

In the user group We "Everyone" I have User 01 and User 02, selecting this group and setting only Create + Import permissions. This will cause User 01 to only have create and import permissions, losing the read permissions.

Please Log in to join the conversation.

More
2 months 1 week ago #218320 by DenisChenu

Will the "Always Available" mechanism in the future be able to assume that selected surveys placed in this group will also not be visible to users?


 

There are no link between : "Always available" and visibility of Surveys. It's linked to the group

> For me, it would be logical that if a group is hidden, the survey in that group are invisible.

Except if you give Permission to this user on a survey (or ALL survey): it's the case. I didn't understand.

> The above solution made it possible to individually grant a specific person access to the survey in a group hidden with these rights Create (preview survey) Import (copy survey).

If user can not see a group : he can not choose the group in the dropdown … then can not Create or import survey in this group.

> Maybe it should be a proposal to the development department?

I create and improve all Survey group permission, and i can construct plugin for specific usage. Else : another solution community.limesurvey.org/feature-request/

To see a group and put survey in a group:
- You are allowed to see the group OR
- You have a survey (owner) inside this group OR
- You have a survey with view right in this group OR
- Group is always available
- Group is default one (forced to be always available)

The "You have a survey in the group" is mandatory : when you edit the survey : you see the group of this survey (but NOT the survey in this group)

> Group changes (removing / adding users) do not update these changes in the list under Survey/Survey Group Permissions. Because the assignment does not follow the group IDs, but after importing the group content into the permission list.

No : like already written : Group is more a shortcut usage for Permission.
BUT : a plugin can link between User group and Survey group (by name ? Or Admin administration part ?)

> In the user group We "Everyone" I have User 01 and User 02, selecting this group and setting only Create + Import permissions. This will cause User 01 to only have create and import permissions, losing the read permissions.

If you check on Survey permission system on 3.X : it's the same. Existing user A with all right. Adding a group and give only Response right : Existing user A have only Response right.
You can report the issue for 3.X and 5.X

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
2 months 6 days ago #218365 by alorenc
I miss the 'hide survey' option (under development) from other users.

Alternatively, I can use group permissions in LS5. I just need to write a plugin that will automatically add new users to the "Templates" group. Because I cannot imagine that someone would watch over it on a daily basis in an organization with several thousand employees.

Please Log in to join the conversation.

More
2 months 6 days ago #218367 by DenisChenu

I miss the 'hide survey' option (under development) from other users.

 

Still don't understand ?
If an user have no rights on a survey : he didn't see it.

> Alternatively, I can use group permissions in LS5. I just need to write a plugin that will automatically add new users to the "Templates" group. Because I cannot imagine that someone would watch over it on a daily basis in an organization with several thousand employees.

Maybe have a "Default group" ? Or create the group right on User creation are the speediest way right.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
2 months 6 days ago - 2 months 6 days ago #218373 by alorenc
>Still don't understand ?
If an user have no rights on a survey : he didn't see it.

I put templates in the "Default" group:
- Template 01 (created by super-admin)
- Template 02 (created by super-admin)
- Template 03 (created by super-admin)
- Survey user01 (survey created by user01)
- Survey user02 (survey created by user02)

Scenario:
1. I create "Hidden group for user02" - always available OFF
2. I set "Survey in this group" permission so that "user02" got access to manage survey in the group. Result:
- User01 cannot see "Hidden group for user02"
- User02 has access to the "Hidden group for user02"
3. The "User02" user creates the "Survey User02 - hidden" survey, saving it in the "Hidden group for user02" group

Test (by scenario):
I. All users have permission to create and view / read
- everyone: can see all in the default group also those created by other users (it's ok)
- User01: can see all in this "Survey User02 - Hidden" (not okay - why ???)
- User02: can see all (it's ok)

II. All users can only create (forbidden view/read )
- all: defaults only see Template01 (where are the rest? where are Template02 and Template03? I made a copy of Template01 and name it Template04, but it's not there either).
- user01: can only see your survey: "Survey User01" (it's ok)
- user02: can only see your survey: "User of survey02" and "User of survey02 - hidden" (it's ok)

The test will bring permissions to the group "Hidden group for user 02" on the user "user01"
- user01: access to the poll "User02 Survey - hidden" (it's ok)

In my opinion, something is not working properly with these permission groups.

PS .: is it true?
User02 has created a survey, has been added to the hidden group. This group gave access to another user and user02 lost access to it. However, he sees this group on the list, I suppose it's because the survey belonging to him is in this group.
Last edit: 2 months 6 days ago by alorenc.

Please Log in to join the conversation.

More
2 months 6 days ago - 2 months 6 days ago #218377 by DenisChenu
> I. All users have permission to create and view / read
> - everyone: can see all in the default group also those created by other users (it's ok)
> - User01: can see all in this "Survey User02 - Hidden" (not okay - why ???)

Because user01 have Global read rigt on any survey. For Permission : only one permission is needed, you can not remove a permission in LimeSurvey (except with plugin).


> - all: defaults only see Template01 (where are the rest? where are Template02 and Template03? I made a copy of Template01 and name it Template04, but it's not there either).

Strange ?


> In my opinion, something is not working properly with these permission groups.

Please : more detail : for me it's seems totally OK.
Your current detail are unclear about right on Surveys in group and Right on Group.


> PS .: is it true?
> User02 has created a survey, has been added to the hidden group. This group gave access to another user and user02 lost access to it. However, he sees this group on the list, I suppose it's because the survey belonging to him is in this group.

Yes : exactly

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
Last edit: 2 months 6 days ago by DenisChenu.

Please Log in to join the conversation.

More
2 months 6 days ago - 2 months 6 days ago #218383 by alorenc
I attach screenshots:
- CreateGroupHidden.png
- GroupHiddenAllowUser02.png - User02 added
- GroupHiddenAllowUser02Permission.png - permissions granted to User02
- Example_I.png - effect after performing the first test
- Example_II.png - effect after performing the second test
- CopyTemplate01.png - setting CopyTemplate01 to Template04

According to the second case, the list should include:
- Template01
- Template02
- Template03
- Template04

The screenshot shows that there is only Template01. If it worked correctly then this solution would be sufficient, but unfortunately it is not. I think that the topic has already been exhausted, I am not able to provide more details.

PS.
The last screenshot of CopyTemplate01.png was taken as the last one, therefore Template04 is not present in the previous screenshots.
Last edit: 2 months 6 days ago by alorenc.

Please Log in to join the conversation.

More
2 months 6 days ago #218384 by DenisChenu
> - Example_I.png - effect after performing the first test : yes : right is given by Global settings, like 3.X. test done is (order

- User have all read rights on Survey : github.com/LimeSurvey/LimeSurvey/blob/cc...els/Survey.php#L2266
- If not user have Survey right on Survey group : github.com/LimeSurvey/LimeSurvey/blob/cc...els/Survey.php#L2270
- If not : On Survey itself github.com/LimeSurvey/LimeSurvey/blob/cc...els/Survey.php#L2273

> - CopyTemplate01.png - setting CopyTemplate01 to Template04

I don't think group is copied when copy a survey ? And i think it's better

> According to the second case, the list should include:
> - Template01
> - Template02
> - Template03
> - Template04

Template02 and Template03 are in Hidden-User2 ?

Else : i think it's better to name it like "Show to user 2" because you can not hide a survey : only show a survey if it's not already shown.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
2 months 5 days ago #218386 by holch

> - Example_I.png - effect after performing the first test : yes : right is given by Global settings, like 3.X. test done is (order

- User have all read rights on Survey : github.com/LimeSurvey/LimeSurvey/blob/cc...els/Survey.php#L2266
- If not user have Survey right on Survey group : github.com/LimeSurvey/LimeSurvey/blob/cc...els/Survey.php#L2270
- If not : On Survey itself github.com/LimeSurvey/LimeSurvey/blob/cc...els/Survey.php#L2273

> - CopyTemplate01.png - setting CopyTemplate01 to Template04

I don't think group is copied when copy a survey ? And i think it's better

> According to the second case, the list should include:
> - Template01
> - Template02
> - Template03
> - Template04

Template02 and Template03 are in Hidden-User2 ?

Else : i think it's better to name it like "Show to user 2" because you can not hide a survey : only show a survey if it's not already shown.

I am not quite sure why this post was reported, there was also no reason given. I assume that  it was just a mistake, wrong click. Because I can't see anything that would give a reason to report this post.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now