Permissions C5.7

Permalink
Hello Concrete5 members!

I am curious if it is possible to create a file so that a User Group and the Permissions are set for every Concrete5 installation.

Now I have to create the same Group and set the same permission settings over and over again for each Concrete5 installation.

nesoor
 
WillemAnchor replied on at Permalink Reply
WillemAnchor
Permissions are stored in 13 or more database tables...It would require quite a bit of work to create queries to save and import those. Especially to do it safe.
Could be done of course...
JohntheFish replied on at Permalink Reply
JohntheFish
There are core classes for manipulating permissions. No need (and best not) to manipulate the database tables directly. There are some howtos on doing this for 5.6. AFAIK, the interface to that area of 5.7 is similar.

You could write a c5 job with a bunch of initial users/groups/permissions already hard coded into it, or to parse a csv file with the info to then set up as you require.