WorkOS

user_management.organization_memberships.list

Get a list of all organization memberships matching the criteria specified. At least one of `user_id` or `organization_id` must be provided. By default only active memberships are returned. Use the `statuses` parameter to filter by other statuses.

Remote workos

Other tools also called user_management.organization_memberships.list? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "after": {
      "type": "string",
      "description": "An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `\"obj_123\"`, your subsequent call can include `after=\"obj_123\"` to fetch a new batch of objects after `\"obj_123\"`."
    },
    "limit": {
      "type": "integer",
      "default": 10,
      "description": "Upper limit on the number of objects to return, between `1` and `100`."
    },
    "order": {
      "enum": [
        "normal",
        "desc",
        "asc"
      ],
      "type": "string",
      "default": "desc",
      "description": "Order the results by the creation time. Supported values are `\"asc\"` (ascending), `\"desc\"` (descending), and `\"normal\"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending."
    },
    "before": {
      "type": "string",
      "description": "An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `\"obj_123\"`, your subsequent call can include `before=\"obj_123\"` to fetch a new batch of objects before `\"obj_123\"`."
    },
    "user_id": {
      "type": "string",
      "description": "The ID of the [user](/reference/authkit/user)."
    },
    "statuses": {
      "type": "array",
      "items": {
        "enum": [
          "active",
          "inactive",
          "pending"
        ],
        "type": "string"
      },
      "description": "Filter by the status of the organization membership. Array including any of `active`, `inactive`, or `pending`."
    },
    "organization_id": {
      "type": "string",
      "description": "The ID of the [organization](/reference/organization) which the user belongs to."
    }
  }
}
          

Provider

WorkOS →