2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

POST /cloud/v2/groups/{group_id}/memberships/{membership_id}:unassignRole — cloud.docs

Unassign Role Group Membership

Unassigns a specific role from a user within a group. If the user does not hold the specified role, no action is taken.

Endpoint

Method: POST

Path: /cloud/v2/groups/{group_id}/memberships/{membership_id}:unassignRole

Servers:

Parameters

NameLocationRequiredDescription
group_idpathtrueThe group ID.
membership_idpathtrueThe membership ID.
[
  {
    "name": "group_id",
    "in": "path",
    "description": "The group ID.",
    "required": true,
    "schema": {
      "type": "string"
    }
  },
  {
    "name": "membership_id",
    "in": "path",
    "description": "The membership ID.",
    "required": true,
    "schema": {
      "type": "string"
    }
  }
]

Request Body

{
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/UnassignRoleGroupMembershipRequest"
      }
    }
  },
  "required": true
}

Responses

StatusDescription
200OK
{
  "200": {
    "description": "OK",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/GroupMembership"
        }
      }
    }
  }
}

Authentication

{
  "security": [],
  "securitySchemes": {}
}

Complete Operation Definition

{
  "tags": [
    "Cloud"
  ],
  "summary": "Unassign Role Group Membership",
  "description": "Unassigns a specific role from a user within a group. If the user does\nnot hold the specified role, no action is taken.",
  "operationId": "Cloud_UnassignRoleGroupMembership",
  "parameters": [
    {
      "name": "group_id",
      "in": "path",
      "description": "The group ID.",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "membership_id",
      "in": "path",
      "description": "The membership ID.",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/UnassignRoleGroupMembershipRequest"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/GroupMembership"
          }
        }
      }
    }
  },
  "x-visibility": "BETA",
  "x-roblox-engine-usability": {
    "apiKeyWithHttpService": true
  },
  "x-roblox-scopes": [
    {
      "name": "group:write"
    }
  ],
  "x-roblox-docs": {
    "category": "Users and groups",
    "methodProperties": {
      "scopes": [
        "group:write"
      ]
    },
    "resource": {
      "$ref": "#/components/schemas/GroupMembership",
      "name": "GroupMembership"
    }
  }
}