Retrieves the name of the perceived owner for the specified governed resource. You can then use the calculated perceived owners to identify potential business owners for data within your environment.
Syntax:
Get-QPerceivedOwnerPoI [-GovernedDataId] <String> [<CommonParameters>]
Parameter | Description |
---|---|
GovernedDataId |
Specify the ID (GUID format) of the governed resource whose perceived owner information you want to identify. Run the Get-QDataUnderGovernance cmdlet to retrieve a list of governed resources and their associated IDs (UID_QAMDuG value) for a specific managed host. |
Examples:
Example | Description |
---|---|
C:\PS>$resources = Get-Content 'C:\Resources.txt' foreach($resource in $resources) { try { $governed = Get-QDataUnderGovernance $resource if($governed) { $perceivedOwner = Get-QPerceivedOwnerPoI $governed.UID_QAMDuG $resource += ';' $resource += $perceivedOwner.EmployeeId Add-Content 'c:\PerceivedOwnerResource.txt' $resource } else { $resource += ';' $resource += 'Resource Not Governed' Add-Content 'c:\PerceivedOwnerResource.txt' $resource } } catch { Writestatus $_ } } |
Returns the perceived owner information for a governed resource with the specified id. This PowerShell script takes a list of governed resources and returns the perceived owner for each. |
Details retrieved:
Detail | Description (Associated key or property in QAMPoIPerceivedOwner table) |
---|---|
EmployeeName | The name of the perceived owner (employee) for the governed resource. |
EmployeeId | The value (GUID) assigned to the perceived owner (employee). |
TrusteeName | The name of the account that initiated the operation. |
TrusteeId | The value (GUID) assigned to the trustee (UID_QAMTrustee). |
TrusteeXObjectKey | The value (<Key>) assigned to the account. |
TrusteeType |
The type of account. |