[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThis endpoint modifies the \u003ccode\u003eMembershipRole\u003c/code\u003es of a specified \u003ccode\u003eMembership\u003c/code\u003e resource via a POST request.\u003c/p\u003e\n"],["\u003cp\u003eYou can add new roles using the \u003ccode\u003eaddRoles\u003c/code\u003e field, remove existing roles using \u003ccode\u003eremoveRoles\u003c/code\u003e, or update roles via the \u003ccode\u003eupdateRolesParams\u003c/code\u003e field, but mixing actions in the same request is not permitted, except for updating the \u003ccode\u003eMEMBER\u003c/code\u003e role.\u003c/p\u003e\n"],["\u003cp\u003eRemoving the \u003ccode\u003eMEMBER\u003c/code\u003e role is not possible; instead, a \u003ccode\u003eMembership\u003c/code\u003e should be deleted using the \u003ccode\u003eMembershipsService.DeleteMembership\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter in the URL path is required and specifies the target \u003ccode\u003eMembership\u003c/code\u003e in the format \u003ccode\u003egroups/{group}/memberships/{membership}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMembership\u003c/code\u003e resource's roles will be modified according to your request, with the response returning the updated \u003ccode\u003eMembership\u003c/code\u003e resource.\u003c/p\u003e\n"]]],[],null,["# Method: groups.memberships.modifyMembershipRoles\n\nModifies the `MembershipRole`s of a `Membership`.\n\n### HTTP request\n\n`POST https://cloudidentity.googleapis.com/v1/{name=groups/*/memberships/*}:modifyMembershipRoles`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nThe response message for [MembershipsService.ModifyMembershipRoles](/identity/docs/reference/rest/v1/groups.memberships/modifyMembershipRoles#google.apps.cloudidentity.groups.v1.MembershipsService.ModifyMembershipRoles).\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-identity.groups`\n- `https://www.googleapis.com/auth/cloud-identity`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nUpdateMembershipRolesParams\n---------------------------\n\nThe details of an update to a `MembershipRole`."]]