Access Configuration with grouped users

Ask your questions here.
Post Reply
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Access Configuration with grouped users

Post by rennecke »

Hi.
I'm struggling with configuring access rules for an entity (including sub entity). :?:
I've an entity which holds data belonging to different departments. The access (also view access) should only be possible for users belonging to the department assigned to that data. I tried to use grouped users.
So I configured a field of type "grouped users" in that entity using a global list. Then I accessed users to the items in the global list. I set the access rules to "view assigned only". It does not work. I only get items shown, which are added be that user (field "added by").
So, what do I wrong?
Does any one has some instructions or an example how to get it done? Many thanks. ;)
User avatar
support
Site Admin
Posts: 6194
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Access Configuration with grouped users

Post by support »

My mistake. Forgot to add rules for this field type. To fix files from archive replace to:
includes\classes\items\items.php
includes\classes\users\users.php

Let me know if it works ok. Also please check access rules for other entities.
Attachments
fix.zip
(14.32 KiB) Downloaded 135 times
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Access Configuration with grouped users

Post by rennecke »

Dear Sergey.
Many thanks, works as expected. Also other access rules work as I configured them.
On field type "user" there is a checkbox "Authorized user by default". Maybe something similar could be assigned to the grouped user field. I know this is more tricky, as a user could be assigned to several "user groups".
Regards Eberhard
User avatar
support
Site Admin
Posts: 6194
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Access Configuration with grouped users

Post by support »

rennecke wrote: 29 Dec 2018, 19:51 Maybe something similar could be assigned to the grouped user field. I know this is more tricky, as a user could be assigned to several "user groups".
Regards Eberhard
The issue is the same user can be assigned to several groups.
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Access Configuration with grouped users

Post by rennecke »

Hi.
I have two other issue with the grouped user field:
1. It was not shown in the import field matching configuration:
gu02.png
2. It can not be modified with "update selected" - the field can be selected, but than there are no entries to select:
gu01.png
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

Re: Access Configuration with grouped users

Post by rmcdonald »

Hi I am not sure if my issue is similar to this or not , when I create a global list and attach the user to the value, they arent getting any notifications and the item does not show up in assigned only reports ?
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Access Configuration with grouped users

Post by rennecke »

This is not solved in 2.5.
Will it be possible to implement into 2.5 final release?
Post Reply