Hi,

Ok, that's weird... Are you doing these operations in system context?

Regards from Vienna,

Richard

(iPhone)

> On 10.10.2013, at 21:29, "Petr Kadlec (via Magnolia Forums)" 
> <[email protected]> wrote:
> 
> Hi Richard, 
> 
> thanks for your reply. I am aware of theses methods (addRole, addGroup) and 
> I'm using them, but they dont work for me and throw expections, that's the 
> problem. You can see the debug message I included, when I try to call 
> addGroup(createdUser,"groupname"); - it throws 
> "javax.jcr.PathNotFoundException: groups". That's why I asked if the 'groups' 
> node has to be created explicitly. 
> 
> When I add some group to user in admincentral, it stops throwing this 
> exception, but then it doesnt find requested group or role (second output of 
> debug messages in my previous post) - "Role [superuser] does not exist in the 
> ROLES repository". But it does exist.
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=8a808b5f-a23d-4fad-8ceb-88591de5990b
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 
> 



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to