Skip to content

Add GET /organisations/others/ (orgs except own, paginated, searchable, not field-agent)#56

Merged
immerSIR merged 1 commit into
223MapAction:mainfrom
immerSIR:orgs-others
Jul 1, 2026
Merged

Add GET /organisations/others/ (orgs except own, paginated, searchable, not field-agent)#56
immerSIR merged 1 commit into
223MapAction:mainfrom
immerSIR:orgs-others

Conversation

@immerSIR

@immerSIR immerSIR commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

FE request: an endpoint returning organisations EXCEPT the connected user's own, with pagination (load-more) + search, accessible to all dashboard roles except the field agent.

GET /MapApi/organisations/others/

  • Excludes the caller's organisation_member.
  • ?search= on name/acronym/subdomain/intervention_country (case + accent-insensitive via unaccent).
  • Paginated ?page/?page_size ({count,next,previous,results}).
  • Permission: authenticated, any role EXCEPT field agent (→ 403).
    Verified on dev (super_admin 4 / org_admin excl-own 3 / field_agent 403 / search / pagination).

…insensitive search, all dashboard roles except field agent
@immerSIR immerSIR merged commit b4ac2e5 into 223MapAction:main Jul 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant