Returns the compact records for all teams in the organization visible to
the authorized user.

@param  organization Globally unique identifier for the workspace or organization.
@return Request object
437888
public CollectionRequest<Team> findByOrganization(String organization) {
    
        String path = String.format("/organizations/%s/teams", organization);
        return new CollectionRequest<Team>(this, Team.class, path, "GET");
    }
716508
public JSONObject getByTeamLimited(String company, String team, HashMap<String, String> params) throws JSONException {
        return _getByType(company, team, null, params, true);
    }
36922
public Organization getOrganization(long id) {
        return complete(submit(req("GET", tmpl("/organizations/{id}.json").set("id", id)),
                handle(Organization.class, "organization")));
    }
830008
@SuppressWarnings("unchecked")
    public MappedLdapGroup getMappedLdapGroup(final Team team, final String dn) {
        final Query query = pm.newQuery(MappedLdapGroup.class, "team == :team && dn == :dn");
        final List<MappedLdapGroup> result = (List<MappedLdapGroup>) query.execute(team, dn);
        return Collections.isEmpty(result) ? null : result.get(0);
    }
465469
public static Sid getOrganizationSidByAccountSid(DaoManager storage, final Sid accountSid) {
        return storage.getAccountsDao().getAccount(accountSid).getOrganizationSid();
    }
874116
def get_team(self, id):
        
        assert isinstance(id, (int, long)), id
        headers, data = self._requester.requestJsonAndCheck(
            "GET",
            "/teams/" + str(id)
        )
        return github.Team.Team(self._requester, headers, data, completed=True)
724462
def get_organizations(self, permission='read'):
        # type: (str) -> List['Organization']
        
        success, result = self._read_from_hdx('user', self.data['name'], 'id', self.actions()['listorgs'],
                                              permission=permission)
        organizations = list()
        if success:
            for organizationdict in result:
                organization = hdx.data.organization.Organization.read_from_hdx(organizationdict['id'])
                organizations.append(organization)
        return organizations
1054406
@Override
	public List<Issue> listOrganizationIssues(String organization) {
		Map<String, Object> uriVariables = new HashMap<>();
		uriVariables.put("organization", organization);
		return getRestOperations()
				.exchange(buildUri("/orgs/{organization}/issues?per_page=25", uriVariables), HttpMethod.GET, null, issueListTypeRef)
				.getBody();
	}
156419
def organizations(org_list = nil)
      if org_list
        return org_list if dashboard_type == 'template'
        org_list.to_a.select { |e| organization_ids.include?(e.uid) || organization_ids.include?(e.id) }
      else
        MnoEnterprise::Organization.where('uid.in' => organization_ids).to_a
      end
    end
837575
@GET
    @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
    @Path("/{name}" + ServerAPI.GET_CORPORATE_GROUPIDS)
    public Response getCorporateGroupIdPrefix(@PathParam("name") final String organizationId){
        LOG.info("Got a get corporate groupId prefix request for organization " + organizationId +".");

        final ListView view = new ListView("Organization " + organizationId, "Corporate GroupId Prefix");
        final List<String> corporateGroupIds = getOrganizationHandler().getCorporateGroupIds(organizationId);
        view.addAll(corporateGroupIds);

        return Response.ok(view).build();
    }
1340499
public com.google.protobuf.ByteString
      getOrganizationBytes() {
    java.lang.Object ref = organization_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      organization_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
685041
public synchronized String getOrg(long ipnum) {
        try {
            int seekOrg = seekCountry(ipnum);
            return readOrgRecord(seekOrg);

        } catch (IOException e) {
            throw new InvalidDatabaseException("Error while reading org", e);
        }
    }
56836
@GET
    @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
    @Path("/{gavc}" + ServerAPI.GET_ORGANIZATION)
    public Response getOrganization(@PathParam("gavc") final String gavc, @Context final UriInfo uriInfo){
        if(LOG.isInfoEnabled()) {
            LOG.info(String.format("Got a get artifact's organization request [%s]", gavc));
        }

        final ArtifactHandler artifactHandler = getArtifactHandler();
        final DbArtifact artifact = artifactHandler.getArtifact(gavc);
        final DbModule module = artifactHandler.getModule(artifact);

        if(module == null || module.getOrganization().isEmpty()) {
            return Response.noContent().build();
        }

        final DbOrganization organization = getOrganizationHandler().getOrganization(module.getOrganization());
        final OrganizationView view = new OrganizationView(getModelMapper().getOrganization(organization));
        return Response.ok(view).build();
    }
286558
@Override
    public List<Board> getOrganizationBoards(String organizationId, Argument... args) {
        return asList(() -> get(createUrl(GET_ORGANIZATION_BOARD).params(args).asString(), Board[].class, organizationId));
    }
988959
public List<Integer> selectUserIdsWithGlobalPermission(DbSession dbSession, String organizationUuid, String permission) {
    return mapper(dbSession).selectUserIdsWithGlobalPermission(organizationUuid, permission);
  }
605827
public List<ComponentDto> selectProjectsByOrganization(DbSession dbSession, String organizationUuid) {
    return mapper(dbSession).selectProjectsByOrganization(organizationUuid);
  }
366231
def get_organizations(self, page=None):
        """"""
        opts = {}
        if page:
            opts['page'] = page
        return self.api_call(ENDPOINTS['organizations']['list'], **opts)