Hallo Petr,

Jan and Jozef have answered about the system context - you need to be using 
system context to ensure there are sufficient JCR privileges to be able to 
write to the users workspace...

Regards from Vienna,

Richard

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Petr Kadlec (via Magnolia Forums)
Gesendet: Freitag, 11. Oktober 2013 13:42
An: Magnolia User List
Betreff: [magnolia-user] Re: Shibboleth authentication

What do you mean in system context?
I'm creating user this way:
[code]
UserManager userManager = 
SecuritySupport.Factory.getInstance().getUserManager(realm.getName());
user = userManager.createUser(name, "pass");

userManager.setProperty(user, "title", this.data.get("fullName")); 
userManager.setProperty(user, "email", this.data.get("email"));

userManager.addGroup(user, "demo-project-publishers"); [/code]

Thanks!

--
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