Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-3369

Allow PUT calls to set permissions in same POST call

    Details

    • ACT Numbers:

      00929985 Partner

    • Work Funnel:
      Feature
    • Sprint:
      Repo 50 - Little Mermaid
    • Template:

      Description

      [Summary of the Enhancement]
       
      The desired functionality would allow users to create a node and set its permissions in the same POST call. In attempting to do so, the folder was created successfully but the permissions in the JSON payload seems to be ignored. The permissions are still default/inherited. 
       
      [Customer's environment, including version]
       
      Alfresco Content Services 5.2.1 
      RHEL 7.4 
      MySQL 5.6 
      Java 8 
      Solr 4
       
      [Replication steps/Current behaviour] 
       
      Tried to create a folder AND set permission in the same API call. The folder was created but permissions were ignored. 

      POST /nodes/{nodeId}/children 

      \{ 
      "name":"Test2""nodeType":"cm:folder""properties":\{ 
      "cm:title":"Test2" 
      }, 
      "permissions":\{ 
      "isInheritanceEnabled":false"locallySet":[ 
      \{ 
      "authorityId":"joe""name":"SiteManager""accessStatus":"ALLOWED" 
      } 
      ] 
      } 
      } 
      

       
       
      [Desired behaviour]
       
      To be able to set permissions with a PUT call in the same POST call that creates the node.
       
      [Business case] 
       
      Use case: able to create node and set permissions in once API call. Currently, it can only be achieved by two separate calls: first call to create node and second call to update node with permission. This improves API usability in the case that node does not use default inherited permissions.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  rbrinson Roderick Brinson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel