web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Permissions overview NAV with powershell?

(0) ShareShare
ReportReport
Posted on by 5

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

I have the same question (0)
  • Byrdwatcher Profile Picture
    5 on at

    Hi, has anyone done something like this or could they point me in the right direction?

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans