javax.jcr.RepositoryException: Cannot remove 'peterpan' from group everyone
Fix:
Add membership to group everyone to curl command.
:add_user => {
:aem55 => 'curl -u <%= admin_user %>:<%= admin_password %> -FcreateUser= -FauthorizableId=<%= user %> -Frep:password=<%= password %> -Fmembership=<%= group %> -Fmembership=everyone http://localhost:<%= port %>/libs/granite/security/post/authorizables'
}
Original code
aem_user user['name'] do
password user['password']
# port node[:aem][:author][:port]
port '3000'
admin_user node[:aem][:author][:admin_user]
admin_password node[:aem][:author][:admin_password]
aem_version node[:aem][:version]
group user['group']
action :add
end
AEM 6 with SP2.
Fails to add user
Error message:
javax.jcr.RepositoryException: Cannot remove 'peterpan' from group everyone
Fix:
Add membership to group everyone to curl command.
Original code
HTTP request & response