google-admin-settings-api

Google Admin Directory API: Add User Employee Details

拟墨画扇 提交于 2019-12-23 02:42:09
问题 I already have a working function for adding user using Google Admin Directory: string password = Random_Password(); User newuserbody = new User(); UserName newusername = new UserName(); UserOrganization newuserorg = new UserOrganization(); newusername.GivenName = GivenName; newusername.FamilyName = FamilyName; newuserbody.Name = newusername; newuserorg.Department = Department; newuserorg.CostCenter = Country; newuserorg.Title = JobTitle; newuserbody.Organizations = newuserorg; newuserbody

AdminSettings API using service account auth/keyword failures

有些话、适合烂在心里 提交于 2019-12-20 07:23:50
问题 Trying to retreive domain number of users, 'GetCurrentNumberOfUsers()', using AdminSettings API via a Service Account in Python . Enabled delegation wide authority and scope, but getting errors. I have used service account for Calendar API, Directory API, EmailSettings API, but not working for AdminSettings. Tried sample code at: github.com/Khan/gdata-python-client/blob/master/samples/apps/adminsettings_example.py but get 'Authorization required' error while using correct credentials for

AdminSettings API using service account in a C# Console application

﹥>﹥吖頭↗ 提交于 2019-12-13 06:48:54
问题 I'm trying to use the Google Admin Settings API with a Service Account with no success from a C# Console application. From what I've understood, I first have to get an OAuth token. I've tried 2 methods successfully for this: using Google.Apis.Auth.OAuth2.ServiceAccountCredentials or by creating manually the JWT assertion. But when I call an Admin Settings API with the OAuth token (maximumNumberOfUsers for instance), I always get a 403 error with " You are not authorized to perform operations

Google Group Settings API enabled for service accounts?

丶灬走出姿态 提交于 2019-12-12 05:09:22
问题 Most of the Google Management APIs seem to have been enabled for Service Accounts. For example, I can retrieve calendars like so: string scope = Google.Apis.Calendar.v3.CalendarService.Scopes.Calendar.ToString().ToLower(); string scope_url = "https://www.googleapis.com/auth/" + scope; string client_id = "999...@developer.gserviceaccount.com"; string key_file = @"\path\to\my-privatekey.p12"; string key_pass = "notasecret"; AuthorizationServerDescription desc = GoogleAuthenticationServer

Google Admin Directory API: Add User Employee Details

∥☆過路亽.° 提交于 2019-12-08 20:58:33
I already have a working function for adding user using Google Admin Directory: string password = Random_Password(); User newuserbody = new User(); UserName newusername = new UserName(); UserOrganization newuserorg = new UserOrganization(); newusername.GivenName = GivenName; newusername.FamilyName = FamilyName; newuserbody.Name = newusername; newuserorg.Department = Department; newuserorg.CostCenter = Country; newuserorg.Title = JobTitle; newuserbody.Organizations = newuserorg; newuserbody.PrimaryEmail = GivenName + "." + FamilyName + email_suffix; //SET PASSWORD newuserbody.Password =