changeOwner

Back to index

Summary

Change the owner of an object.
The Modify privilege on the admin system access control list is required to change the owner of an object. For email notifiers, the owner can be changed if the current user has sufficient privileges to delete and recreate the object.
applicationName
Stringoptional
The name of an application.
applicationTierName
Stringoptional
The name of an application tier.
archiveConnectorName
Stringoptional
The name of an archive connector.
artifactName
Stringoptional
The name of the artifact container of the property sheet which owns the property.
artifactVersionName
Stringoptional
The name of the artifactVersion container of the property sheet which owns the property.
catalogName
Stringoptional
The name of the catalog of the property sheet which owns the property.
ciBuildDetailName
Stringoptional
The name of the CI build detail of the property sheet which owns the property.
clusterName
Stringoptional
The name of the cluster which owns property sheet.
componentName
Stringoptional
The name of a component.
configName
Stringoptional
The name of the email configuration.
credentialName
Stringoptional
The name of the credential.
dashboardName
Stringoptional
The name of a dashboard.
dataRetentionPolicyName
Stringoptional
The name of a data retention policy.
environmentName
Stringoptional
The name of an environment.
environmentTemplateName
Stringoptional
The name of an environment template.
environmentTemplateTierName
Stringoptional
The name of the environment template tier container of the property sheet which owns the property.
environmentTierName
Stringoptional
The name of an environment tier.
flowName
Stringoptional
The name of the flow container of the property sheet which owns the property.
flowRuntimeId
Stringoptional
The ID of the flow runtime container of the property sheet which owns the property.
flowRuntimeName
Stringoptional
The name of the flow runtime container of the property sheet which owns the property.
flowRuntimeStateId
Stringoptional
The primary key or name of the flowRuntimeState container of the property sheet which owns the property.
flowRuntimeStateName
Stringoptional
The name of the flow state container of the property sheet which owns the property.
flowStateName
Stringoptional
The name of the flow state container of the property sheet which owns the property.
flowTransitionName
Stringoptional
The name of the flow transition container of the property sheet which owns the property.
gateType
Stringoptional
The type of the gate which owns property sheet.
Possible values: "POST", "PRE"
gatewayName
Stringoptional
The name of the gateway container of the property sheet.
groupName
Stringoptional
The name of a group.
jobId
Stringoptional
The primary key or name of the job container of the property sheet which owns the property.
jobStepId
UUIDoptional
The primary key of the job-step container of the property sheet which owns the property.
microserviceName
Stringoptional
The name of the microservice container of the property sheet.
newOwnerName
Stringoptional
The name of the new owner.
notifierName
Stringoptional
The email notifier name.
objectId
Stringoptional
The object ID as returned by FindObjects.
path
Stringoptional
Property path string.
pipelineName
Stringoptional
The name of the pipeline container of the property sheet which owns the property.
pluginConfigurationName
Stringoptional
The name of the plugin configuration container of the property sheet which owns the property.
pluginName
Stringoptional
The name of a plugin.
procedureName
Stringoptional
The name of a procedure.
processName
Stringoptional
The name of a process.
processStepName
Stringoptional
The name of a process step.
projectName
Stringoptional
The name of a project.
propertySheetId
UUIDoptional
The primary key of the property sheet.
recursive
Booleanoptional
Applies ownership changes for pipeline, release, and flowRuntime objects to associated child objects. When set to the default value of 'false', ownership changes are applied only to the selected object. If set to 'true' for pipeline and release, changes are applied to stages, gates, tasks, associated flow and flow state objects, and common objects (properties, email notifiers, event subscriptions and formal parameters). If set to 'true' for flowRuntime, changes are applied to flowRuntimeState, nested flowRuntime objects, and common objects (properties, email notifiers, and event subscriptions).
releaseName
Stringoptional
The name of the release container of the property sheet which owns the property.
reportName
Stringoptional
The name of a report.
reportObjectTypeName
Stringoptional
The name of a report object type.
repositoryName
Stringoptional
The name of the repository container of the property sheet which owns the property.
resourceName
Stringoptional
The name of a resource.
resourcePoolName
Stringoptional
The name of the resource pool container of the property sheet which owns the property.
resourceTemplateName
Stringoptional
The name of the resource template container of the property sheet which owns the property.
scheduleName
Stringoptional
The name of a schedule.
scmSyncName
Stringoptional
The name of the Scm Sync container of the property sheet which owns the property.
snapshotName
Stringoptional
The name of the snapshot container of the property sheet which owns the property.
stageName
Stringoptional
The name of the stage container of the property sheet which owns the property.
stateDefinitionName
Stringoptional
The name of a workflow state definition.
stepName
Stringoptional
The name of a procedure step.
taskName
Stringoptional
The name of the task which owns property sheet.
transitionDefinitionName
Stringoptional
The name of a workflow transition definition.
triggerName
Stringoptional
The name of the trigger which owns property sheet.
userName
Stringoptional
The name of a user.
widgetName
Stringoptional
The name of a widget.
workflowDefinitionName
Stringoptional
The name of a workflow definition.
workflowName
Stringoptional
The name of the workflow container of the property sheet which owns the property.
workspaceName
Stringoptional
The name of a workspace.
zoneName
Stringoptional
The name of the zone container of the property sheet.

Usage

Perl

$cmdr->changeOwner( # optionals );

ectool

ectool changeOwner \ # optionals

Examples

Perl

The following example changes the owner of the default project to the current user:

$cmdr->changeOwner({"projectName" => "Default"});

The following example changes the owner of a project named Q2Release to a new owner named hjindal:

$cmdr->changeOwner({"newOwnerName" => "hjindal", "projectName" => "Q2Release"});

ectool

The following example changes the owner of the default project to the current user:

ectool changeOwner –-projectName "Default"

The following example changes the owner of a project named Q2Release to a new owner named hjindal:

ectool changeOwner --newOwnerName "hjindal" –-projectName "Q2Release"