You do not have permission to create an item here (Local Datasources)












6














I'm working on security for an implementation and while testing use cases, I found that my authors are not able to create local datasources in the 'virtual page data' location that is hidden by default under pages.



So the 'data' folder shows up, but they can't create items there when clicking "create":



SXA You do not have permission to create an item here



Is there a security setting that must be enabled for an author to use this? (keeping in mind that I'm using the principle of least privilege)



Thanks!










share|improve this question





























    6














    I'm working on security for an implementation and while testing use cases, I found that my authors are not able to create local datasources in the 'virtual page data' location that is hidden by default under pages.



    So the 'data' folder shows up, but they can't create items there when clicking "create":



    SXA You do not have permission to create an item here



    Is there a security setting that must be enabled for an author to use this? (keeping in mind that I'm using the principle of least privilege)



    Thanks!










    share|improve this question



























      6












      6








      6







      I'm working on security for an implementation and while testing use cases, I found that my authors are not able to create local datasources in the 'virtual page data' location that is hidden by default under pages.



      So the 'data' folder shows up, but they can't create items there when clicking "create":



      SXA You do not have permission to create an item here



      Is there a security setting that must be enabled for an author to use this? (keeping in mind that I'm using the principle of least privilege)



      Thanks!










      share|improve this question















      I'm working on security for an implementation and while testing use cases, I found that my authors are not able to create local datasources in the 'virtual page data' location that is hidden by default under pages.



      So the 'data' folder shows up, but they can't create items there when clicking "create":



      SXA You do not have permission to create an item here



      Is there a security setting that must be enabled for an author to use this? (keeping in mind that I'm using the principle of least privilege)



      Thanks!







      sxa security






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 16 at 16:08









      Mark Cassidy

      16.7k43180




      16.7k43180










      asked Dec 16 at 14:48









      Craig Taylor

      1655




      1655






















          2 Answers
          2






          active

          oldest

          votes


















          7














          While trying to configure security for the users of our system, I found that I needed to grant access to the template used for the Data item; which I believe is a Virtual Page Data.



          Example: The following applies security changes to the Data folders.



          # This is a helper method to simplify the changes.
          function New-AccessRuleList {
          [CmdletBinding()]
          [OutputType("System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]")]
          param(
          [string]$Identity,
          [string]$AccessRule,
          [Sitecore.Security.AccessControl.PropagationType]$PropagationType,
          [Sitecore.Security.AccessControl.SecurityPermission]$SecurityPermission
          )

          $list = New-Object "System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]"
          foreach($rule in $accessrule) {
          $list.Add((New-ItemAcl -Identity $Identity -AccessRight $rule -PropagationType $PropagationType -SecurityPermission $SecurityPermission))
          }

          @(,$list)
          }

          $allowItemProps = @{
          PropagationType = [Sitecore.Security.AccessControl.PropagationType]::Entity
          SecurityPermission = [Sitecore.Security.AccessControl.SecurityPermission]::AllowAccess
          }

          $realEveryone = "Everyone"
          $virtualDataItem = Get-Item -Path "master:" -ID "{9700DC24-8969-4638-ACC3-34D54335829E}"
          $accessRules = New-Object Sitecore.Security.AccessControl.AccessRuleCollection
          $accessRules.AddRange((New-AccessRuleList -Identity $realEveryone -AccessRule item:create @allowItemProps))
          $virtualDataItem | Add-ItemAcl -AccessRules $accessRules


          The final results:



          Security Settings On Item






          share|improve this answer





















          • Thanks @Michael! Setting the permissions to 'create' on the item let my author role create these datasources!
            – Craig Taylor
            Dec 16 at 16:06



















          3














          I think you are encountering the bug described by Kris here https://kverheire.blogspot.com/2018/06/setting-sxa-security-roles-with-small.html
          (see "First issue" in the blog post).



          The solution is:




          1. Go to the item: /sitecore/system/Settings/Foundation/Experience Accelerator/Local Datasources/Virtual Page Data

          2. Add the permission for the "Create" security right for all the needed users or role. (In this case that is the SXA Author created role)






          share|improve this answer





















          • +1'd. Thanks @Gatogordo. Yes, adding the proper permissions enabled this to work!
            – Craig Taylor
            Dec 16 at 16:09











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "664"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f15556%2fyou-do-not-have-permission-to-create-an-item-here-local-datasources%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          7














          While trying to configure security for the users of our system, I found that I needed to grant access to the template used for the Data item; which I believe is a Virtual Page Data.



          Example: The following applies security changes to the Data folders.



          # This is a helper method to simplify the changes.
          function New-AccessRuleList {
          [CmdletBinding()]
          [OutputType("System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]")]
          param(
          [string]$Identity,
          [string]$AccessRule,
          [Sitecore.Security.AccessControl.PropagationType]$PropagationType,
          [Sitecore.Security.AccessControl.SecurityPermission]$SecurityPermission
          )

          $list = New-Object "System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]"
          foreach($rule in $accessrule) {
          $list.Add((New-ItemAcl -Identity $Identity -AccessRight $rule -PropagationType $PropagationType -SecurityPermission $SecurityPermission))
          }

          @(,$list)
          }

          $allowItemProps = @{
          PropagationType = [Sitecore.Security.AccessControl.PropagationType]::Entity
          SecurityPermission = [Sitecore.Security.AccessControl.SecurityPermission]::AllowAccess
          }

          $realEveryone = "Everyone"
          $virtualDataItem = Get-Item -Path "master:" -ID "{9700DC24-8969-4638-ACC3-34D54335829E}"
          $accessRules = New-Object Sitecore.Security.AccessControl.AccessRuleCollection
          $accessRules.AddRange((New-AccessRuleList -Identity $realEveryone -AccessRule item:create @allowItemProps))
          $virtualDataItem | Add-ItemAcl -AccessRules $accessRules


          The final results:



          Security Settings On Item






          share|improve this answer





















          • Thanks @Michael! Setting the permissions to 'create' on the item let my author role create these datasources!
            – Craig Taylor
            Dec 16 at 16:06
















          7














          While trying to configure security for the users of our system, I found that I needed to grant access to the template used for the Data item; which I believe is a Virtual Page Data.



          Example: The following applies security changes to the Data folders.



          # This is a helper method to simplify the changes.
          function New-AccessRuleList {
          [CmdletBinding()]
          [OutputType("System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]")]
          param(
          [string]$Identity,
          [string]$AccessRule,
          [Sitecore.Security.AccessControl.PropagationType]$PropagationType,
          [Sitecore.Security.AccessControl.SecurityPermission]$SecurityPermission
          )

          $list = New-Object "System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]"
          foreach($rule in $accessrule) {
          $list.Add((New-ItemAcl -Identity $Identity -AccessRight $rule -PropagationType $PropagationType -SecurityPermission $SecurityPermission))
          }

          @(,$list)
          }

          $allowItemProps = @{
          PropagationType = [Sitecore.Security.AccessControl.PropagationType]::Entity
          SecurityPermission = [Sitecore.Security.AccessControl.SecurityPermission]::AllowAccess
          }

          $realEveryone = "Everyone"
          $virtualDataItem = Get-Item -Path "master:" -ID "{9700DC24-8969-4638-ACC3-34D54335829E}"
          $accessRules = New-Object Sitecore.Security.AccessControl.AccessRuleCollection
          $accessRules.AddRange((New-AccessRuleList -Identity $realEveryone -AccessRule item:create @allowItemProps))
          $virtualDataItem | Add-ItemAcl -AccessRules $accessRules


          The final results:



          Security Settings On Item






          share|improve this answer





















          • Thanks @Michael! Setting the permissions to 'create' on the item let my author role create these datasources!
            – Craig Taylor
            Dec 16 at 16:06














          7












          7








          7






          While trying to configure security for the users of our system, I found that I needed to grant access to the template used for the Data item; which I believe is a Virtual Page Data.



          Example: The following applies security changes to the Data folders.



          # This is a helper method to simplify the changes.
          function New-AccessRuleList {
          [CmdletBinding()]
          [OutputType("System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]")]
          param(
          [string]$Identity,
          [string]$AccessRule,
          [Sitecore.Security.AccessControl.PropagationType]$PropagationType,
          [Sitecore.Security.AccessControl.SecurityPermission]$SecurityPermission
          )

          $list = New-Object "System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]"
          foreach($rule in $accessrule) {
          $list.Add((New-ItemAcl -Identity $Identity -AccessRight $rule -PropagationType $PropagationType -SecurityPermission $SecurityPermission))
          }

          @(,$list)
          }

          $allowItemProps = @{
          PropagationType = [Sitecore.Security.AccessControl.PropagationType]::Entity
          SecurityPermission = [Sitecore.Security.AccessControl.SecurityPermission]::AllowAccess
          }

          $realEveryone = "Everyone"
          $virtualDataItem = Get-Item -Path "master:" -ID "{9700DC24-8969-4638-ACC3-34D54335829E}"
          $accessRules = New-Object Sitecore.Security.AccessControl.AccessRuleCollection
          $accessRules.AddRange((New-AccessRuleList -Identity $realEveryone -AccessRule item:create @allowItemProps))
          $virtualDataItem | Add-ItemAcl -AccessRules $accessRules


          The final results:



          Security Settings On Item






          share|improve this answer












          While trying to configure security for the users of our system, I found that I needed to grant access to the template used for the Data item; which I believe is a Virtual Page Data.



          Example: The following applies security changes to the Data folders.



          # This is a helper method to simplify the changes.
          function New-AccessRuleList {
          [CmdletBinding()]
          [OutputType("System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]")]
          param(
          [string]$Identity,
          [string]$AccessRule,
          [Sitecore.Security.AccessControl.PropagationType]$PropagationType,
          [Sitecore.Security.AccessControl.SecurityPermission]$SecurityPermission
          )

          $list = New-Object "System.Collections.Generic.List[Sitecore.Security.AccessControl.AccessRule]"
          foreach($rule in $accessrule) {
          $list.Add((New-ItemAcl -Identity $Identity -AccessRight $rule -PropagationType $PropagationType -SecurityPermission $SecurityPermission))
          }

          @(,$list)
          }

          $allowItemProps = @{
          PropagationType = [Sitecore.Security.AccessControl.PropagationType]::Entity
          SecurityPermission = [Sitecore.Security.AccessControl.SecurityPermission]::AllowAccess
          }

          $realEveryone = "Everyone"
          $virtualDataItem = Get-Item -Path "master:" -ID "{9700DC24-8969-4638-ACC3-34D54335829E}"
          $accessRules = New-Object Sitecore.Security.AccessControl.AccessRuleCollection
          $accessRules.AddRange((New-AccessRuleList -Identity $realEveryone -AccessRule item:create @allowItemProps))
          $virtualDataItem | Add-ItemAcl -AccessRules $accessRules


          The final results:



          Security Settings On Item







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 16 at 15:23









          Michael West

          8,18621450




          8,18621450












          • Thanks @Michael! Setting the permissions to 'create' on the item let my author role create these datasources!
            – Craig Taylor
            Dec 16 at 16:06


















          • Thanks @Michael! Setting the permissions to 'create' on the item let my author role create these datasources!
            – Craig Taylor
            Dec 16 at 16:06
















          Thanks @Michael! Setting the permissions to 'create' on the item let my author role create these datasources!
          – Craig Taylor
          Dec 16 at 16:06




          Thanks @Michael! Setting the permissions to 'create' on the item let my author role create these datasources!
          – Craig Taylor
          Dec 16 at 16:06











          3














          I think you are encountering the bug described by Kris here https://kverheire.blogspot.com/2018/06/setting-sxa-security-roles-with-small.html
          (see "First issue" in the blog post).



          The solution is:




          1. Go to the item: /sitecore/system/Settings/Foundation/Experience Accelerator/Local Datasources/Virtual Page Data

          2. Add the permission for the "Create" security right for all the needed users or role. (In this case that is the SXA Author created role)






          share|improve this answer





















          • +1'd. Thanks @Gatogordo. Yes, adding the proper permissions enabled this to work!
            – Craig Taylor
            Dec 16 at 16:09
















          3














          I think you are encountering the bug described by Kris here https://kverheire.blogspot.com/2018/06/setting-sxa-security-roles-with-small.html
          (see "First issue" in the blog post).



          The solution is:




          1. Go to the item: /sitecore/system/Settings/Foundation/Experience Accelerator/Local Datasources/Virtual Page Data

          2. Add the permission for the "Create" security right for all the needed users or role. (In this case that is the SXA Author created role)






          share|improve this answer





















          • +1'd. Thanks @Gatogordo. Yes, adding the proper permissions enabled this to work!
            – Craig Taylor
            Dec 16 at 16:09














          3












          3








          3






          I think you are encountering the bug described by Kris here https://kverheire.blogspot.com/2018/06/setting-sxa-security-roles-with-small.html
          (see "First issue" in the blog post).



          The solution is:




          1. Go to the item: /sitecore/system/Settings/Foundation/Experience Accelerator/Local Datasources/Virtual Page Data

          2. Add the permission for the "Create" security right for all the needed users or role. (In this case that is the SXA Author created role)






          share|improve this answer












          I think you are encountering the bug described by Kris here https://kverheire.blogspot.com/2018/06/setting-sxa-security-roles-with-small.html
          (see "First issue" in the blog post).



          The solution is:




          1. Go to the item: /sitecore/system/Settings/Foundation/Experience Accelerator/Local Datasources/Virtual Page Data

          2. Add the permission for the "Create" security right for all the needed users or role. (In this case that is the SXA Author created role)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 16 at 15:17









          Gatogordo

          11k21555




          11k21555












          • +1'd. Thanks @Gatogordo. Yes, adding the proper permissions enabled this to work!
            – Craig Taylor
            Dec 16 at 16:09


















          • +1'd. Thanks @Gatogordo. Yes, adding the proper permissions enabled this to work!
            – Craig Taylor
            Dec 16 at 16:09
















          +1'd. Thanks @Gatogordo. Yes, adding the proper permissions enabled this to work!
          – Craig Taylor
          Dec 16 at 16:09




          +1'd. Thanks @Gatogordo. Yes, adding the proper permissions enabled this to work!
          – Craig Taylor
          Dec 16 at 16:09


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Sitecore Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f15556%2fyou-do-not-have-permission-to-create-an-item-here-local-datasources%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Сан-Квентин

          Алькесар

          Josef Freinademetz