moveAccount

Moves an account from its current source parent root or organizational unit (OU) to the specified destination parent root or OU.

This operation can be called only from the organization's management account.

Samples


fun main() { 
   //sampleStart 
   // The following example shows how to move a member account from the root to an OU n n
organizationsClient.moveAccount {
    accountId = "333333333333"
    sourceParentId = "r-examplerootid111"
    destinationParentId = "ou-examplerootid111-exampleouid111"
} 
   //sampleEnd
}