Announcement

#1 2024-04-16 23:18:50

Cheatha
Member
2024-04-16
1

Import permissions

Hello,
I've got a few groups:
- user 2023
- user 2024

And I've got the following folders:

- folder 2023
-- 01
-- 02
-- 03
-- …
-- 12
- folder 2024
-- 01
-- 02
-- …
-- 12

there are no photos in "folder 2023", only in the subfolders. The group permissions are tied to the folders, e.g. "user 2023" can see all of "folder 2023" including every subfolder. Users can be in multiple user groups, e.g. "user 2023" AND "user 2024". But If they decide to leave the organisation in mid 2023, they will be removed (or not added) to "user 2024", so they won't see "folder 2024" or any subfolder.

at the moment they need to be removed from "user 2023" as well and added to every subfolder until the date  on which they leave. If someone leaves in may 2023 they will be added manually to 2023/01..05.

Is there a way to automate permissions in this style? I could export a list of folders for every user, as json, csv, whatever… but how would I import such a permission? It's important not only to "add" permissions, but to remove them also. I don't know in advance when a users leaves, so they are all added to the "users $year" group first.

Thank you very much!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact