The following example gets the effective permissions for an item.



Code Sample

# Set the item identifier of the item for which the effective permissions to be returned.

$itemID = 1000;


# Read the effective permissions.

$effectivePermissions = $xia.GET_EffectivePermissions($itemID);

Write-Host $effectivePermissions.AccountName;

Write-Host "Full control:" $effectivePermissions.FullControl;

Write-Host "Rename:" $effectivePermissions.Rename;

Write-Host "Read:" $effectivePermissions.Read;

Write-Host "Write:" $effectivePermissions.Write;

Write-Host "Decommission:" $effectivePermissions.Decommission;

Write-Host "Delete:" $effectivePermissions.Delete;

Write-Host "Delete history:" $effectivePermissions.DeleteHistory;

Write-Host "Modify security:" $effectivePermissions.ModifySecurity;