Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

I accidently deprived myself from all authorisation when i was checking users authorisations

Posted on by 60

Hello,
I accidently deprived myself from all authorisation when i was checking users authorisations (nav 2017), i can't even ran an object now. Please help thanks.
here's an example of an error that shows when i run an object :
***You do not have permission: Tools, Object Builder***

*This post is locked for comments

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: I accidently deprived myself from all authorisation when i was checking users authorisations

    Just use the second command I’ve showed to you before and create the user permission you want for accessing NAV (for example SUPER). So:

    New-NAVServerUserPermissionSet -PermissionSetId SUPER -ServerInstance <<Service Name>> -WindowsAccount "Domain\USerName"

  • RE: I accidently deprived myself from all authorisation when i was checking users authorisations

    Thank you very much, Problem Sloved!

  • RE: I accidently deprived myself from all authorisation when i was checking users authorisations

    Hi,

    Instead of creating a new user, how can i reset my user profile as a superuser using powershell?

    thank you

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: I accidently deprived myself from all authorisation when i was checking users authorisations

    Can you login as an admin and insert the roles to your user account?

    If not, you can use Powershell:

    #Add User -

    New-NAVServerUser -ServerInstance <<Service Name>> -WindowsAccount <<Domain\USerName>> -LicenseType Full -State Enabled

    #Add User Permission -

    New-NAVServerUserPermissionSet -PermissionSetId SUPER -ServerInstance <<Service Name>> -WindowsAccount "Domain\USerName"

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans