---
title: "Schedules the processing of group memberships"
method: POST
path: "/api/index/v1/processallmemberships"
tags: ["Permissions"]
---

# Schedules the processing of group memberships

`POST /api/index/v1/processallmemberships`

Schedules the immediate processing of all group memberships uploaded through the indexing API. By default the uploaded group memberships will be processed asynchronously but this API can be used to schedule processing of all memberships on demand.

## Request body

- ProcessAllMembershipsRequest — Describes the request body of the /processallmemberships API call
  - `datasource` string — If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed.

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Not Authorized

---

[API](https://skmtc.dev/gleanwork/apis/glean-api-2.md) · [All operations](https://skmtc.dev/gleanwork/apis/glean-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gleanwork/glean-api-2/revisions/8516a7bdcc02/schema)
