assignNewParentId


SoftLayer_User_Customer::assignNewParentId

Assign a different parent to this user.

Overview

This method can be used in place of [[SoftLayer_User_Customer::editObject]] to change the parent user of this user.

The new parent must be a user on the same account, and must not be a child of this user. A user is not allowed to change their own parent.

If the cascadeFlag is set to false, then an exception will be thrown if the new parent does not have all of the permissions that this user possesses. If the cascadeFlag is set to true, then permissions will be removed from this user and the descendants of this user as necessary so that no children of the parent will have permissions that the parent does not possess.


Parameters

Name Type Description
parentId integer the id of the parent to be assigned to the user
cascadePermissionsFlag boolean

Required Headers

  • authenticate
  • SoftLayer_User_CustomerInitParameters

Optional Headers

  • SoftLayer_User_CustomerObjectMask
  • SoftLayer_ObjectMask

Return Values