Title: Service account: Cannot set user to impersonate using GoogleCredential fromStream · Issue #1007 · googleapis/google-api-java-client · GitHub
Open Graph Title: Service account: Cannot set user to impersonate using GoogleCredential fromStream · Issue #1007 · googleapis/google-api-java-client
X Title: Service account: Cannot set user to impersonate using GoogleCredential fromStream · Issue #1007 · googleapis/google-api-java-client
Description: I'm trying to use a service account to automatically manage/create groups using the Directory API. When I try to use a service account with the credentials in the form of JSON and try to use the GoogleCredential.fromStream(...) call, the...
Open Graph Description: I'm trying to use a service account to automatically manage/create groups using the Directory API. When I try to use a service account with the credentials in the form of JSON and try to use the Go...
X Description: I'm trying to use a service account to automatically manage/create groups using the Directory API. When I try to use a service account with the credentials in the form of JSON and try to use th...
Opengraph URL: https://github.com/googleapis/google-api-java-client/issues/1007
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Service account: Cannot set user to impersonate using GoogleCredential fromStream","articleBody":"I'm trying to use a service account to automatically manage/create groups using the Directory API. When I try to use a service account with the credentials in the form of JSON and try to use the GoogleCredential.fromStream(...) call, there does not seem to be a way to set the user, and at least for the Admin API I cannot get calls to work without impersonating a user as I always get Forbidden (403) responses. \n\nUsing the GoogleCredential Builder seems to work fine with the PKCS12 formatted key as long as I set the user, but your docs and console seem to recommend to use the JSON formatted credential file. \n\nHave I missed something, or is this functionality not available without using the builder? \n","author":{"url":"https://github.com/WilsonGiese","@type":"Person","name":"WilsonGiese"},"datePublished":"2016-04-14T16:54:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/1007/google-api-java-client/issues/1007"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:215dba6e-62b9-b676-6b72-dcb5f5fe03e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E112:E972C:123D1DE:19156E4:6A4DE32C |
| html-safe-nonce | 9f318b8125f48674b479a4809049e89da33ea7643efb8d2638b8cfb1a19b5e14 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTEyOkU5NzJDOjEyM0QxREU6MTkxNTZFNDo2QTRERTMyQyIsInZpc2l0b3JfaWQiOiIzOTc5OTI5MjMwNDE4NzY0NTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bc30bf873f1b7795da0f53bf60601a3fa1c16237b79bedb9d830556285919046 |
| hovercard-subject-tag | issue:148422338 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-api-java-client/1007/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d3d12d44b5454f1ae403d25721abfb48f4f1cddc6a3bd9e08f7a62910b30c54c/googleapis/google-api-java-client/issues/1007 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d3d12d44b5454f1ae403d25721abfb48f4f1cddc6a3bd9e08f7a62910b30c54c/googleapis/google-api-java-client/issues/1007 |
| og:image:alt | I'm trying to use a service account to automatically manage/create groups using the Directory API. When I try to use a service account with the credentials in the form of JSON and try to use the Go... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | WilsonGiese |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-api-java-client git https://github.com/googleapis/google-api-java-client.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 25881432 |
| octolytics-dimension-repository_nwo | googleapis/google-api-java-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 25881432 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-api-java-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width