Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 2

API to read Organization's base permission value?

Is there a way to read the base permissions value (Admin/Write/Read/None) for an organization using the GraphQL or REST APIs? 

 

image.png

 

 

 

 

 

 

 

 

 

1 Reply
Community Manager
Message 2 of 2

Re: API to read Organization's base permission value?

Hey @galok73,

 

Thanks for being here! You could try a graphQL query,This should get you what you are looking for:

query {
  organization(login: "myOrg") {
    teams(first: 10){
      nodes() {
        name
        repositories(first:10) {
          nodes() {
            nameWithOwner
            viewerPermission
          }
        }
      }
    }
  }
}

Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!