Consider Two users "A " and "B" and two folders "A" and "B".The folder A should be accessible by user "A" alone and the subfolders(eg : A1) in "A" can be moved to main folder "B".However once the Subfolder(A1 ) has been moved to "B",The user A cannot make any changes to it nor view its properties
How do i solve this problem in Alfresco ?
I would do this with a rule that activates when a new subfolder (A1 or B1)is transferred in a folder (in your case Folder A or B) and applies this owner to the new subFolder.
You might want also to see all the different roles Alfresco has out of the box (Permissions / Roles | Alfresco Documentation ) and if you want it just for a particular Site or cross the repository.
I just want that a particular user can move content created by another. eg
: He can only move folders from A to B and not from B to C.The problem
which i'm having is ,if i choose the role of consumer or contributor,he
cannot move files created by himself whereas if i choose manager ,he would
be able to move every users file, which i don't want .Do i need to create
custom workflow in ACTIVITI ? . Also i do want to know whether i need to do
any type of coding for it(which i prefer not to)
i wanted to change permissions of a user from folder to folder . From A to
B , the user should be given the role of a contributor ,and when it goes to
B ,the user role should be changed to consumer.I just want a user to move
files from A to B .however once it goes to B,he cannot move the files,nor
make any changes,but can only view it. All these process and permissions
needs to be automated .
If you don't want to code then you could do a new role type (say Mover) that has only WriteContent permission (see documentation: Permissions / Roles | Alfresco Documentation).
You then have the following structure:
- Folder A (Manager User A , Mover User B & A )
|- Subfolder A1 (Inherit from ParentFolder)
-Folder B (Manager User B , Mover User B & A )
|-Subfolder B1 (Inherit from ParentFolder)
|-Subfolder B2 (Inherit from ParentFolder)
Then you should move the Subfolder B2 to Folder A without any issue.
Tell me if it worked
Can you provide an example with the help of images. I have no option left but to code.The example you have given seems ok but once the folder gets moved from A to B,the content can be edited by user B only.The problem which i'm facing is after moving content (from A to B) .The user B seems to edit it but similarly even A can edit it ,and can move content ,which should not happen .
I'm not sure I understand what you are doing or trying to do. Your sentence
"The user B seems to edit it but similarly even A can edit it ,and can move content ,which should not happen ."
let's me believe you've started with something. Could you show us what your permissions are?
Isn't it your first sentence what you wanted to do exactly at the beginning?
"The example you have given seems ok but once the folder gets moved from A to B,the content can be edited by user B only."
As I said with the proposition you don't need to code just edit 2 XML files (one for the new role, and the Spring context to load the previous). The only code you could maybe have to do is a script to set your Permission structure on your Folder Structure. But that's for later :-)
I'l explain the process I've done with the help of screenshots
These are the four folders which i have created in the document library
Now , i login from a user whom i have given the permissions as a contributor
I have set permissions and rules in such a way that he can move the folders from "sales to Business Controller "
After clicking the "send to business controller " it moves into the "Business controller folder "
The process seems fine here. What i DON'T want the user is to
1 : Delete the folder "test" when it is in "Business Controller
2 :Approve or reject the workflow which i have created for the folder "Business Controller
but the user can even approve or reject the folder ,which should not happen .Also i wanted a way if i could hide these options for user "Mohit'
Only the user who is in charge of the folder "Business Controller " can approve or reject it .
I must say I find it quite disturbing that a "Contributor" has Delete/Manage Permissions/Manage Aspects permissions on a folder...
Are you sure... can you send how which rights are given on the 4 Folders?
For the Action part I'll let you read this Creating Custom Actions in Alfresco | ECMArchitect | Alfresco Developer Tutorials so you can activate the button accordingly to the users permissions
i had a query ,
Can i hide the Approve and Reject button for a particular user in Alfresco
.(Refer the Attachment ) and keep it visible for a different user .
If so can you give me the required code for it and also the location where
i need to insert that code .
An explaination with the help of an example will be really helpful .
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.