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? 

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
          }
        }
      }
    }
  }
}
1 Like