Move an OrgMembership
to a new OrgUnit.
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 URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Immutable. The resource name of the Format: orgUnits/{$orgUnitId}/memberships/{$membership} The The |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "customer": string, "destinationOrgUnit": string } |
Fields | |
---|---|
customer |
Required. Immutable. Customer on whose membership change is made. All authorization will happen on the role assignments of this customer. Format: customers/{$customerId} where You may also use |
destination |
Required. Immutable. OrgUnit where the membership will be moved to. Format: orgUnits/{$orgUnitId} where |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-identity.orgunits
For more information, see the Authentication Overview.