[[["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 roles associated with a specific membership within a group, identified by the \u003ccode\u003ename\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eYou can add new roles, remove existing roles, or update roles, but adding/removing and updating roles cannot be done in the same request.\u003c/p\u003e\n"],["\u003cp\u003eWhen removing roles, the \u003ccode\u003eMEMBER\u003c/code\u003e role cannot be removed; instead, the entire membership should be deleted via \u003ccode\u003eMembershipsService.DeleteMembership\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUpdating roles allows for changes to the \u003ccode\u003eexpiry_detail.expire_time\u003c/code\u003e field, and only \u003ccode\u003eMEMBER\u003c/code\u003e roles can currently be updated.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specific authorization scopes such as \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-identity.groups\u003c/code\u003e and the response contains 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/v1beta1/{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/v1beta1/groups.memberships/modifyMembershipRoles#google.apps.cloudidentity.groups.v1beta1.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`."]]