I'm trying to get an overview of user permissions in NAV with powershell. I can see by using the following command: Get-NAVServerUserPermissionSet that a user has a particular PermissionSetID but lots of different company names.
When I use Get-NavServerPermission, I see that one PermissionSetID has many objectIDs.
I'm wondering how to put all this together. Has anyone done this?
I've tried the following:
$Groups = Get-NavServerPermissionset -ServerInstance "InstanceName" | Select PermissionSetID $Results = foreach( $Group in $Groups ){ Get-NAVServerUserPermissionSet -ServerInstance "InstanceName" | Get-NAVServerUser -ServerInstance "InstanceName" | Where state -eq Enabled } $Results
This brings up an error message though.
Get-NAVServerUser : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
Can anyone help me there?
Thanks.
*This post is locked for comments