NOTE: This is an atomic copy-and-delete. The resource will have a new copy under the destination OrgUnit and be deleted from the source OrgUnit. The resource can only be searched under the destination OrgUnit afterwards.
HTTP request
POST https://cloudidentity.googleapis.com/v1beta1/{name=orgUnits/*/memberships/*}:move
The$orgUnitIdis theorgUnitIdfrom theAdmin SDKOrgUnitresource. To manage a Membership without specifying sourceorgUnitId, this API also supports the wildcard character '-' for$orgUnitIdperhttps://google.aip.dev/159.
[[["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 operation moves an OrgMembership to a new OrgUnit, effectively copying and deleting it from the original location.\u003c/p\u003e\n"],["\u003cp\u003eAfter the move, the OrgMembership can only be found under the destination OrgUnit.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003ename\u003c/code\u003e parameter specifying the OrgMembership resource and utilizes a \u003ccode\u003ePOST\u003c/code\u003e request to a designated URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request body needs both a \u003ccode\u003ecustomer\u003c/code\u003e field indicating the customer making the change, and a \u003ccode\u003edestinationOrgUnit\u003c/code\u003e field specifying the new location.\u003c/p\u003e\n"],["\u003cp\u003eThe operation requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-identity.orgunits\u003c/code\u003e for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: orgUnits.memberships.move\n\nMove an [OrgMembership](/identity/docs/reference/rest/v1beta1/orgUnits.memberships#OrgMembership) to a new OrgUnit.\n\nNOTE: This is an atomic copy-and-delete. The resource will have a new copy under the destination OrgUnit and be deleted from the source OrgUnit. The resource can only be searched under the destination OrgUnit afterwards.\n\n### HTTP request\n\n`POST https://cloudidentity.googleapis.com/v1beta1/{name=orgUnits/*/memberships/*}:move`\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\nIf successful, the response body contains an instance of [Operation](/identity/docs/reference/rest/Shared.Types/Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-identity.orgunits`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]