Skip to main content

Notifications

Announcements

No record found.

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

  • Byrdwatcher Profile Picture
    Byrdwatcher 5 on at
    RE: Permissions overview NAV with powershell?

    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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans