{"action":"opened","issue":{"url":"https://api.github.com/repos/lithnet/googleapps-managementagent/issues/9","repository_url":"https://api.github.com/repos/lithnet/googleapps-managementagent","labels_url":"https://api.github.com/repos/lithnet/googleapps-managementagent/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/lithnet/googleapps-managementagent/issues/9/comments","events_url":"https://api.github.com/repos/lithnet/googleapps-managementagent/issues/9/events","html_url":"https://github.com/lithnet/googleapps-managementagent/issues/9","id":178206200,"number":9,"title":"Adding manager who is an existing member fails","user":{"login":"khandelwalpiyush","id":19180629,"avatar_url":"https://avatars.githubusercontent.com/u/19180629?v=3","gravatar_id":"","url":"https://api.github.com/users/khandelwalpiyush","html_url":"https://github.com/khandelwalpiyush","followers_url":"https://api.github.com/users/khandelwalpiyush/followers","following_url":"https://api.github.com/users/khandelwalpiyush/following{/other_user}","gists_url":"https://api.github.com/users/khandelwalpiyush/gists{/gist_id}","starred_url":"https://api.github.com/users/khandelwalpiyush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khandelwalpiyush/subscriptions","organizations_url":"https://api.github.com/users/khandelwalpiyush/orgs","repos_url":"https://api.github.com/users/khandelwalpiyush/repos","events_url":"https://api.github.com/users/khandelwalpiyush/events{/privacy}","received_events_url":"https://api.github.com/users/khandelwalpiyush/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T23:23:41Z","updated_at":"2016-09-20T23:23:41Z","closed_at":null,"body":"1) Created a group with only a member\r\n2) Tried to add a manager who is the same member\r\n\r\nError\r\n\r\n*******************************************************************************\r\n21/09/2016 9:21:21 AM: Opening export connection\r\n-------------------------------------------------------------------------------\r\n21/09/2016 9:21:30 AM: Starting export Update for testgroup-l@d2-monash-edu.ga-staff-dev.monash.edu\r\n21/09/2016 9:21:30 AM: Performing FULL update operation for testgroup-l@d2-monash-edu.ga-staff-dev.monash.edu\r\n****************************************\r\nAn exception has occurred in PutCSEntryChange\r\nType: Google.GoogleApiException\r\nMessage: Google.Apis.Requests.RequestError\r\nMember already exists. [409]\r\nErrors [\r\n\tMessage[Member already exists.] Location[ - ] Reason[duplicate] Domain[global]\r\n]\r\nFailed member add: mgr-piyushk@d2.ga-staff-dev.monash.edu\r\nGroup: testgroup-l@d2-monash-edu.ga-staff-dev.monash.edu\r\nSource: Lithnet.GoogleApps\r\nTargetSite: Void AddMembers(System.String, System.Collections.Generic.IList`1[Google.Apis.Admin.Directory.directory_v1.Data.Member], Boolean)\r\nStackTrace:\r\n   at Lithnet.GoogleApps.GroupMemberRequestFactory.AddMembers(String id, IList`1 members, Boolean throwOnExistingMember)\r\n   at Lithnet.GoogleApps.MA.ApiInterfaceGroupMembership.ApplyChanges(CSEntryChange csentry, SchemaType type, IManagementAgentParameters config, Object& target, Boolean patch) in D:\\github\\lithnet\\googleapps-managementagent\\src\\Lithnet.GoogleApps.MA\\ApiInterfaces\\ApiInterfaceGroupMembership.cs:line 78\r\n   at Lithnet.GoogleApps.MA.ApiInterfaceGroup.ApplyChanges(CSEntryChange csentry, SchemaType type, IManagementAgentParameters config, Object& target, Boolean patch) in D:\\github\\lithnet\\googleapps-managementagent\\src\\Lithnet.GoogleApps.MA\\ApiInterfaces\\ApiInterfaceGroup.cs:line 120\r\n   at Lithnet.GoogleApps.MA.ExportProcessor.PutCSEntryChangeUpdate(CSEntryChange csentry, CSEntryChange deltaCSEntry, MASchemaType maType, SchemaType type, IManagementAgentParameters config) in D:\\github\\lithnet\\googleapps-managementagent\\src\\Lithnet.GoogleApps.MA\\ExportProcessor.cs:line 144\r\n   at Lithnet.GoogleApps.MA.ExportProcessor.PutCSEntryChangeObject(CSEntryChange csentry, SchemaType type, IManagementAgentParameters config) in D:\\github\\lithnet\\googleapps-managementagent\\src\\Lithnet.GoogleApps.MA\\ExportProcessor.cs:line 65\r\n   at Lithnet.GoogleApps.MA.ExportProcessor.PutCSEntryChange(CSEntryChange csentry, SchemaType type, IManagementAgentParameters config) in D:\\github\\lithnet\\googleapps-managementagent\\src\\Lithnet.GoogleApps.MA\\ExportProcessor.cs:line 16\r\n****************************************\r\n-------------------------------------------------------------------------------\r\n21/09/2016 9:21:32 AM: Closing export connection: Normal\r\n21/09/2016 9:21:32 AM: Writing 0 delta entries to file\r\n*******************************************************************************\r\n"}}
{"actor":{"display_login":"khandelwalpiyush"}}