I am curious if this is my issue, a defect, or something else. I am using PowerShell to connect to CME via core-service and load all users (excluding the "predefined" users). I get the user objects, but some of the properties are null. Most importantly, the Privileges property is null, even for users I know are system administrators. in fact, if I fetch such users specifically by ID, the object returned has that property set. But, when fetching them all, it doesn't. Here's how I'm loading the list.
$filter = New-Object Tridion.ContentManager.CoreService.Client.UsersFilterData
$filter.IsPredefined =$false
$client = Get-TridionCoreServiceClient
$allUsers = $client.GetSystemWideList($filter)
$client.close()
$allUsers | Format-Table -Wrap
I did test adding this line:
$filter.BaseColumns = 3
That didn't seem to make a difference. I also used a foreach over the items in case Format-Table was the issue.
foreach ($user in $allUsers)
{
Write-Host $user.Id
Write-Host $user.Title
Write-Host $user.Privileges
}
That didn't make any difference either. Am I missing something to indicate that I want the entire user object?