How to share files to all accounts?


#1

How to share my files to all accounts?
Do I have to add all accounts in a new group? If so, how to add all accounts to a new group quickly?

Thank you.


#2

Creating a group for all your users and share with this group is the way to go.

If using the WebUI is not handy enough (quite likely :wink: ) you can look into the occ commands.

see https://doc.owncloud.org/server/latest/admin_manual/configuration/server/occ_command.html?highlight=occ%20group#group-commands


#3

Thank you for your reply.

I check the link you post.
Still, I need to type all the user accounts in the command line. "--member XXX". When I need to add more than half an thousand users, it is not very efficient..


#4
  • get all users in json: ./occ --output=json user:list
  • convert json into bash and call ./occ group:add-member -m ..... for each of them

#5

Good idea.

Thank you.