You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2017/11/30 13:01:00 UTC

[jira] [Commented] (SLING-7268) unable to create principals and use principals in ACLs on import

    [ https://issues.apache.org/jira/browse/SLING-7268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16272631#comment-16272631 ] 

Bertrand Delacretaz commented on SLING-7268:
--------------------------------------------

Could you use repoinit instead to create those users and ACLs? That's the recommended way.

See https://sling.apache.org/documentation/bundles/repository-initialization.html for details

> unable to create principals and use principals in ACLs on import
> ----------------------------------------------------------------
>
>                 Key: SLING-7268
>                 URL: https://issues.apache.org/jira/browse/SLING-7268
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: JCR ContentLoader 2.2.6
>            Reporter: Andres Bott
>            Priority: Minor
>
> Not able to use principals and ACLS on the same bundle when defining initial content
> ie:
> {
>   "jcr:primaryType" : "sling:Folder",
>   "security:principals": [
>     { "name": "*user*", "password": "mypassword"}
>   ],
>   "security:acl": [
>     { "principal": "*user*", "granted": ["jcr:read","jcr:write"] }
>   ]
> }



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)