Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource not accessible by integration - getOrgMembership #2136

Open
2 of 7 tasks
AmrutaKawade opened this issue Jul 19, 2021 · 1 comment
Open
2 of 7 tasks

Resource not accessible by integration - getOrgMembership #2136

AmrutaKawade opened this issue Jul 19, 2021 · 1 comment
Labels
Type: Support Any questions, information, or general needs around the SDK or GitHub APIs
Projects

Comments

@AmrutaKawade
Copy link

AmrutaKawade commented Jul 19, 2021

Please avoid duplicates

Reproducible test case

na

Please select the environment(s) that are relevant to your bug report

  • TypeScript
  • Enterprise
  • Browsers
  • Node
  • Deno

Version

├─┬ @octokit/auth-app@2.6.0
│ ├─┬ @octokit/request@5.4.2
│ │ ├─┬ @octokit/endpoint@6.0.1
│ │ ├─┬ @octokit/types@2.12.2
│ ├─┬ @octokit/request-error@2.0.0
│ ├─┬ @octokit/types@5.5.0
│ ├─┬ @octokit/core@3.4.0
│ │ ├─┬ @octokit/auth-token@2.4.5
│ │ │ └─┬ @octokit/types@6.14.1
│ │ ├─┬ @octokit/request@5.4.15
│ │ ├─┬ @octokit/request-error@2.0.5
│ │ ├─┬ @octokit/types@6.14.1
│ │ │ └── @octokit/openapi-types@6.2.1
│ ├─┬ @octokit/graphql@4.6.1
│ │ ├─┬ @octokit/types@6.14.1
│ ├─┬ @octokit/plugin-enterprise-compatibility@1.2.11
│ │ ├─┬ @octokit/request-error@2.0.5
│ │ └─┬ @octokit/types@6.14.1
│ ├─┬ @octokit/plugin-paginate-rest@2.13.3
│ │ └─┬ @octokit/types@6.14.1
│ ├─┬ @octokit/plugin-rest-endpoint-methods@3.17.0
│ │ ├─┬ @octokit/types@4.1.10
│ ├─┬ @octokit/plugin-retry@3.0.7
│ │ ├─┬ @octokit/types@6.14.1
│ ├─┬ @octokit/plugin-throttling@3.4.1
│ │ ├─┬ @octokit/types@6.14.1
│ ├─┬ @octokit/types@5.5.0
│ ├─┬ @octokit/webhooks@7.24.3
│ │ ├─┬ @octokit/request-error@2.0.5
│ │ │ ├─┬ @octokit/types@6.14.1
│ ├─┬ @probot/octokit-plugin-config@1.0.5
│ ├─┬ octokit-auth-probot@1.2.4
│ │ ├─┬ @octokit/auth-app@3.4.0
│ │ │ ├─┬ @octokit/auth-oauth-app@4.1.2
│ │ │ │ ├─┬ @octokit/auth-oauth-device@3.1.1
│ │ │ │ │ ├─┬ @octokit/request@5.4.15
│ │ │ │ │ ├─┬ @octokit/types@6.14.1
│ │ │ │ ├─┬ @octokit/types@6.14.1
│ │ │ ├─┬ @octokit/auth-oauth-user@1.2.4
│ │ │ │ ├─┬ @octokit/oauth-methods@1.2.2
│ │ │ │ │ ├── @octokit/oauth-authorization-url@4.3.1
│ │ │ │ │ ├─┬ @octokit/request@5.4.15
│ │ │ │ │ ├─┬ @octokit/request-error@2.0.5
│ │ │ │ │ ├─┬ @octokit/types@6.14.1
│ │ │ │ ├─┬ @octokit/request@5.4.15
│ │ │ │ ├─┬ @octokit/types@6.14.1
│ │ │ ├─┬ @octokit/request@5.4.15
│ │ ├─┬ @octokit/auth-unauthenticated@2.0.4
│ │ │ ├─┬ @octokit/request-error@2.0.5
│ │ │ └─┬ @octokit/types@6.14.1
│ │ └─┬ @octokit/types@6.14.1
│ ├── octokit-pagination-methods@1.1.0

What happened?

I am trying to use octokit.orgs.getMembership({ org, username } api in Github Enterprise App. org is created by the user with username but still I am getting error Resource not accessible by integration.

If I give a app members permissions this API works but. but this should execute in user context. I don't know how this is executing in App context.

Would you be interested in contributing a fix?

  • yes
@AmrutaKawade AmrutaKawade added the Type: Bug Something isn't working as documented label Jul 19, 2021
@ghost ghost added this to Bugs in JS Jul 19, 2021
@gr2m gr2m added Type: Support Any questions, information, or general needs around the SDK or GitHub APIs and removed Type: Bug Something isn't working as documented labels Jul 19, 2021
@ghost ghost moved this from Bugs to Support in JS Jul 19, 2021
@gr2m
Copy link
Contributor

gr2m commented Jul 19, 2021

If I give a app members permissions this API works but. but this should execute in user context. I don't know how this is executing in App context.

The request is sent using authentication from the app. You'll have to authenticate the request as the user instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Support Any questions, information, or general needs around the SDK or GitHub APIs
Projects
No open projects
JS
  
Support
Development

No branches or pull requests

2 participants