{"action":"opened","issue":{"url":"https://api.github.com/repos/Adldap2/Adldap2/issues/308","repository_url":"https://api.github.com/repos/Adldap2/Adldap2","labels_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/308/comments","events_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/308/events","html_url":"https://github.com/Adldap2/Adldap2/issues/308","id":169367533,"number":308,"title":"Add groups before save user?","user":{"login":"Albvadi","id":6285255,"avatar_url":"https://avatars.githubusercontent.com/u/6285255?v=3","gravatar_id":"","url":"https://api.github.com/users/Albvadi","html_url":"https://github.com/Albvadi","followers_url":"https://api.github.com/users/Albvadi/followers","following_url":"https://api.github.com/users/Albvadi/following{/other_user}","gists_url":"https://api.github.com/users/Albvadi/gists{/gist_id}","starred_url":"https://api.github.com/users/Albvadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Albvadi/subscriptions","organizations_url":"https://api.github.com/users/Albvadi/orgs","repos_url":"https://api.github.com/users/Albvadi/repos","events_url":"https://api.github.com/users/Albvadi/events{/privacy}","received_events_url":"https://api.github.com/users/Albvadi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T12:56:11Z","updated_at":"2016-08-04T12:56:11Z","closed_at":null,"body":"Hi,\r\nIt´s possible work with groups before save the user??\r\n\r\nI´m importing users from LDAP and my idea is:\r\n* Read the user from LDAP\r\n* Create user Model for AD\r\n* Fill all attributes\r\n* Add groups\r\n* Save all user data in one step.\r\n\r\nBut, before save user, I dump the user and no data group related... `$user->getGroupNames();` it´s null.\r\nIs it mandatory save the user before add groups?\r\n\r\nThanks!"}}
{"actor":{"display_login":"Albvadi"}}