By mattmm on
I'm looking for feedback from anyone that has setup WebFM or a similar module with user/group view/edit permissions.
Example: Sales group has 3 members. They have their own file store where only the 3 of them have access. However, Tom in the sales group is also the VP and needs access to Support and Accounting File stores.
Is this possible with any of the current file manager mod's or in a combination of mod's? Thanks in advance.
Comments
I think for Webfm you would
I think for Webfm you would have give tom a special role (say VP) and have his root folder higher up than both Sales, Support & Accounts.
Would have to look something like this:
VP
- Sales
- Support
- Accounting
Sales, for example, would have their root folder set as VP/Sales, whereas Toms root folder is just "VP".
www.sitespring.eu
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
I didn't realize you could
I didn't realize you could give roles, different root folders. Guess I will have to dig around more to find that. Thanks for your help!
Ah I see it now. Now the
Ah I see it now. Now the question is, what if I wanted to give someone access to a particular group, but not in a hierarchal order like your VP top down approach. I'm wondering if actually symlinking folders of the file system would work...time to give it a shot, more to come later.
Let us know it that works or
Let us know it that works or you come up with an alternative solution, be interested to hear about that.
www.sitespring.eu
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
OK here is what I've got so
OK here is what I've got so far...
I created an admin for every group and a role to match. Then created every user with a matching role for their username. First create the 'root' or 'home' directory for the group admin, then create the same home directories below the group admin; to be used for the individual users. Logging in with the user admin, yields the individual user accounts under the admin. Also, symlinking the group folder to a user's home directory also works - it's just clunky.
Obviously, this doesn't scale well - would probably be better if you could give multiple roles in webfm to an individual user. Has anyone else tried to tackle this before?
'access webfm' fundamentals
Some basic rules for users in a role with 'access webfm' rights:
Roles can be subsets of roles or they can be exclusive. Users can be members of multiple roles and will consequently have a separate left-hand tree for each unique root directory (roles can share the same root directory).
Create a unique 'Sales' role for the 3 people. Give that role 'access webfm' rights and setup a unique root directory that is directly beneath webfm root for this role in webfm settings. Now only administrators and those 3 people have access to that directory. Tom is also a member of another role that has 'access webfm' rights to the 'Support' directory. Tom will have two left-hand trees. One for 'Sales' and one for 'Support'. He can move files that he owns between the two realms or files that are marked with the 'Role Full Access' permission.
Alternatively the 'Sales' root dir could be a sub_dir of 'Support' in which case all users of the role with the 'Support' root will have access to 'Sales'.
There is no such animal as a role administrator. A module administrator has the keys to the store the same as #1 user.
Thanks for this well
Thanks for this well detailed response! I will jump deeper into this tomorrow and see how this works out.
Hey, i have some question
Hey,
i have some question about this module
i have make the WebFM attachments active - i put a file attachments table to the node body.
i can see as admin the file in the node - i can download this.
but i want to do that anonymous user see the file but doesn´t download this.
anonymous user must register to download the file
thx
db
PS: sorry for my bad english ;)
Give the anonymous role the
Give the anonymous role the right to view webfm attachments.
If you are referring to links to a file inside the node body (rather than in the attachment table), that file must have its permissions set to public.
sorry - it´s not work ! i
sorry - it´s not work !
i have put 4 files on the node
file permissions set:
1 File Public download:
1 File Role View/Download:
1 File Role Attach:
1 File Role Full Access:
when i go to the Access control i check the
view webfm attachments
all files are can anonymous user view AND download !
when the view webfm attachments not checked - you can´t see any file :(
what´s wrong ?
Automating user setup..
Upon new user creation I would like the following to happen automatically; 1> create the folder in the file structure, 2> create role with WebFM admin for that user that is maped tohte folder in the file structure. 3> because these are WebFM exclusive roles I would like them to be prefixed (ie.) customer_ or staff_
Now because of the multitued of options like, Ajax, or PHP module hack and because my experience is more on the theming and Installation, I would be looking for input as to how to go about this proceedure.
Thanks for the basic Rules. That did a lot to explain the logic.
WebFM Documents not showing for non-Admin users (tree not found)
WebFM works fantastic using the admin user (or any other user that has been granted all rights to everything).
However, when I set limited permissions so that regular users can only View / open the documents (but not upload, delete or anything else), the standard users are presented with empty web folders along with an "no trees found" error - using fire fox.
The users don't even get that much on Internet Explorer, just a "Line: 3499, Char: 3 Error: "XMLHttpRequest" is undefined, Code:0" error.
Any ideas what I am doing wrong?
Thanks very much
Hi, I had the same problem
Hi,
I had the same problem and fixed it - in Germany we say "Ich sehe den Wald vor lauter Bäumen nicht" :)
Go to 'Web File Manager Settings".
1. On the top you have to sign in the WebFM root directory (for example 'Testdirectory')
2. If Testdirectory ist the same to show for non-Admin users you have to sign in 'Testdirectory' in 'Settings for authenticated user role'
Best regards,
Matilda
Were you able to resolve this?
Hello,
I'm having the same problem as greycanyon...... and I'm not sure what you mean Matila, when you say
"you have to sign in 'Testdirectory' in 'Settings for authenticated user role'"
Can you please elaborate?
Thanks
Jozz
Fixed it
Hello All,
I found the problem was that an authenticated user can't have access to the same directory as the administrator. Doesn't make any sense to me, but that is the way the module is set up. Hopefully this is changed in the future.
Role root directory
"Access webfm" rights are role based. For any particular user to access webfm he/she must be a member of a role(s) with this permission. Before a particular role with "access webfm" rights can actually access the file manager a "root directory" must be set in the settings of the webfm module. Each role with "access webfm" rights is given a fieldset in webfm settings to control the root directory.
My problem
I have similar problem
I need 3 roles: root, internal and external
- Root is de WebFM administrator
- Each user of external upload and view they owns files
- The users of internal can see all of files of any user in external role
Boss can see the files of worker1 and worker2. Worker1 only view his own files and Worker2 only view his own files.
Help please??
I've managed to get all of
I've managed to get all of this working, but what I am trying to achieve is to allow my clients to upload source files for us to use, much like an integrated ftp system. I can assign the users to a role called clients and give them the ability to access only their own files, but as you can only set the root directory on a role basis, all files no matter which client has uploaded it ends up in the same directory. It is true that the clients can't see each others files but it's a pain from my end, because when we come to access and download the files, we would need to be able to easily work out which have come from what client. I would much rather have a folder for each client and the client to be able to access that folder (inc making subdirectories within it). Is there some way of doing this?
Thanks
Rob