Set the business owner of a resource under governance.
Note: This command only works for resources that have previously been placed under governance.
Syntax
Set-QBusinessOwner [-ManagedHostId] <String> [[-ResourceUri] [<String>]] [[-SetAllResources] [<Boolean>]] [[-EmployeeName] [<String>]] [[-EmployeeId] [<String>]] [-OwnerRoleFullPath] [<String>]] [[-OwnerRoleId] [<String>]] [[-Justificaiton] [<String>]] [<CommonParameters>]
Parameter | Description |
---|---|
ManagedHostId | Specify the ID (GUID format) of the managed host where the governed resource resides. |
ResourceUri -OR- SetAllResources |
Specify one of the following parameters to specify the governed resource that is to be assigned a business owner:
NOTE: You must specify one of these parameters to specify the governed resource. Do NOT specify more than one of these parameters or you will receive an error when running the PowerShell command. |
EmployeeName -OR- EmployeeId -OR- OwnerRoleFullPath -OR- OwnerRoleId |
Specify one of the following parameters to define the business owner to be assigned:
NOTE: You must specify one of these parameters to define the business owner. Do NOT specify more than one of these parameters or you will receive an error when running the PowerShell command. |
Justification | (Optional) Enter a reason for setting the business owner. |
Examples
Example | Description |
---|---|
Set-QBusinessOwner -ManagedHostId b5552078-9eef-4aa4-99dc-3b556277b3b1 -ResourceURI "\\dgefs\a1" -EmployeeName "user6 test, user6" | Sets the business owner for a single resource, using the employee's name. |
Set-QBusinessOwner -ManagedHostId b5552078-9eef-4aa4-99dc-3b556277b3b1 -ResourceURI "\\dgefs\a1" -EmployeeId 3dd99328-e971-4bcf-989e-9a482871e9e9 | Sets the business owner for a single resource, using the employee's ID. |
Set-QBusinessOwner -ManagedHostId b5552078-9eef-4aa4-99dc-3b556277b3b1 -ResourceURI "\\dgefs\a1" -OwnerRoleId 50b8b7b8-6670-4e35-bd3b-f6f64a281364 | Sets the business owner for a single resource, using an application role ID. All employees assigned to this role are considered the business owner. |
Set-QBusinessOwner -ManagedHostId b5552078-9eef-4aa4-99dc-3b556277b3b1 -ResourceURI "\\dgefs\a1" -OwnerRoleFullPath Data "overnance\All Business Owner Roles\Finance Owners" | Sets the business owner for a single resource, using an application role path. All employees assigned to this role are considered the business owner. |
Set-QBusinessOwner -ManagedHostId b5552078-9eef-4aa4-99dc-3b556277b3b1 -SetAllResource 1 -EmployeeName "user6 test, user6" | Sets the business owner for all governed resources on the specified managed host, using the employee's name. |
Set-QBusinessOwner -ManagedHostId b5552078-9eef-4aa4-99dc-3b556277b3b1 -SetAllResource 1 -EmployeeId 3dd99328-e971-4bcf-989e-9a482871e9e9 | Sets the business owner for all governed resources on the specified managed host, using the employee's ID. |
Set-QBusinessOwner -ManagedHostId b5552078-9eef-4aa4-99dc-3b556277b3b1 -SetAllResource 1 -OwnerRoleId 50b8b7b8-6670-4e35-bd3b-f6f64a281364 | Sets the business owner for all governed resources on the specified managed host, using an application role ID. All employees assigned this role are considered the business owner. |
Set-QBusinessOwner -ManagedHostId b5552078-9eef-4aa4-99dc-3b556277b3b1 -SetAllResource 1 -OwnerRoleFullPath Data "overnance\All Business Owner Roles\Finance Owners" |
Sets the business owner for all governed resources on the specified managed host, using an application role path. All employees assigned this role are considered the business owner. |