{"action":"created","issue":{"url":"https://api.github.com/repos/JorgeFerrer/liferay-portal/issues/632","labels_url":"https://api.github.com/repos/JorgeFerrer/liferay-portal/issues/632/labels{/name}","comments_url":"https://api.github.com/repos/JorgeFerrer/liferay-portal/issues/632/comments","events_url":"https://api.github.com/repos/JorgeFerrer/liferay-portal/issues/632/events","html_url":"https://github.com/JorgeFerrer/liferay-portal/pull/632","id":126988505,"number":632,"title":"LPS-62098 Default site role associations are not applied to the user","user":{"login":"pei-jung","id":5168351,"avatar_url":"https://avatars.githubusercontent.com/u/5168351?v=3","gravatar_id":"","url":"https://api.github.com/users/pei-jung","html_url":"https://github.com/pei-jung","followers_url":"https://api.github.com/users/pei-jung/followers","following_url":"https://api.github.com/users/pei-jung/following{/other_user}","gists_url":"https://api.github.com/users/pei-jung/gists{/gist_id}","starred_url":"https://api.github.com/users/pei-jung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pei-jung/subscriptions","organizations_url":"https://api.github.com/users/pei-jung/orgs","repos_url":"https://api.github.com/users/pei-jung/repos","events_url":"https://api.github.com/users/pei-jung/events{/privacy}","received_events_url":"https://api.github.com/users/pei-jung/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-16T00:55:34Z","updated_at":"2016-01-19T15:12:26Z","closed_at":"2016-01-19T01:08:50Z","pull_request":{"url":"https://api.github.com/repos/JorgeFerrer/liferay-portal/pulls/632","html_url":"https://github.com/JorgeFerrer/liferay-portal/pull/632","diff_url":"https://github.com/JorgeFerrer/liferay-portal/pull/632.diff","patch_url":"https://github.com/JorgeFerrer/liferay-portal/pull/632.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/JorgeFerrer/liferay-portal/issues/comments/172883151","html_url":"https://github.com/JorgeFerrer/liferay-portal/pull/632#issuecomment-172883151","issue_url":"https://api.github.com/repos/JorgeFerrer/liferay-portal/issues/632","id":172883151,"user":{"login":"jonathanmccann","id":1919610,"avatar_url":"https://avatars.githubusercontent.com/u/1919610?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanmccann","html_url":"https://github.com/jonathanmccann","followers_url":"https://api.github.com/users/jonathanmccann/followers","following_url":"https://api.github.com/users/jonathanmccann/following{/other_user}","gists_url":"https://api.github.com/users/jonathanmccann/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanmccann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanmccann/subscriptions","organizations_url":"https://api.github.com/users/jonathanmccann/orgs","repos_url":"https://api.github.com/users/jonathanmccann/repos","events_url":"https://api.github.com/users/jonathanmccann/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanmccann/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T15:12:26Z","updated_at":"2016-01-19T15:12:26Z","body":"Hey @JorgeFerrer \r\n\r\nYou are correct, addDefaultRolesAndTeams() does add the correct site memberships and roles to the user, however, addDefaultRoles() does not take into account these default site roles, it only looks at the globally defined default roles. When addDefaultRoles() is run through, it does not get the correct roles and then in updateUserGroupRoles() it ends up removing the default site role that was added by addDefaultRolesAndTeams().\r\n\r\nPlease let me know if I misunderstood something or if you have any questions."}}