Discussions
Activity
Best Of...
Sign In
·
Register
Home
›
NAV Three Tier
Howdy, Stranger!
It looks like you're new here. Sign in or register to get started.
Sign In
Register
Quick Links
Categories
Recent Discussions
Activity
Best Of...
Unanswered
Categories
All Categories
73
General
73
Announcements
66.6K
Microsoft Dynamics NAV
18.7K
NAV Three Tier
38.4K
NAV/Navision Classic Client
3.6K
Navision Attain
2.4K
Navision Financials
115
Navision DOS
854
Navision e-Commerce
1K
NAV Tips & Tricks
772
NAV Dutch speaking only
615
NAV Courses, Exams & Certification
2K
Microsoft Dynamics-Other
1.5K
Dynamics AX
309
Dynamics CRM
109
Dynamics GP
10
Dynamics SL
1.5K
Other
993
SQL General
384
SQL Performance
34
SQL Tips & Tricks
34
Design Patterns (General & Best Practices)
Architectural Patterns
10
Design Patterns
5
Implementation Patterns
53
3rd Party Products, Services & Events
1.7K
General
1.1K
General Chat
1.6K
Website
79
Testing
1.2K
Download section
23
How Tos section
260
Feedback
12
NAV TechDays 2013 Sessions
13
NAV TechDays 2012 Sessions
Adding new AD user as NAV user automatically [WS?]
cell899
Member
Posts:
3
2020-04-14
in
NAV Three Tier
Hello,
I have this issue where I need to add new NAV user when new user is added to AD.
Have anyone done something like this before or you have some clues how to approach this kind of issue?
Would that be even possible?
0
Answers
SanderDk
Member
Posts:
502
2020-04-14
edited 2020-04-14
Warning not done by Webservice.
Depending on your version of AD server and your NAV/BC it is fairly easy.
You can use PowerShell and create a windows task that create the users in NAV from your AD.
If you a running newere version of NAV/BC you can with a few lines create you users
New-NAVServerUser -WindowsAccount $user `
-ChangePasswordAtNextLogOn `
-FullName $Fullname `
-LicenseType Full `
-ServerInstance $ins
New-NavServerUserPermissionSet -WindowsAccount $user `
-ServerInstance $ins `
-PermissionSetId $SetID
For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
0
cell899
Member
Posts:
3
2020-04-14
Unfortunatelly that is not solving the issue.
I would need to create the new NAV user automatically every time when AD user is created. Is this possible?
0
AK
Member
Posts:
226
2020-04-17
I did something similar once. You need to query AD periodically for all users, check if the AD users are in the user table and insert them if not.
0
cell899
Member
Posts:
3
2020-04-17
@AK
Do you have maybe some instruction/tutorial how to approach this task?
0
Sign In
or
Register
to comment.
Answers
Depending on your version of AD server and your NAV/BC it is fairly easy.
You can use PowerShell and create a windows task that create the users in NAV from your AD.
If you a running newere version of NAV/BC you can with a few lines create you users
New-NAVServerUser -WindowsAccount $user `
-ChangePasswordAtNextLogOn `
-FullName $Fullname `
-LicenseType Full `
-ServerInstance $ins
New-NavServerUserPermissionSet -WindowsAccount $user `
-ServerInstance $ins `
-PermissionSetId $SetID
I would need to create the new NAV user automatically every time when AD user is created. Is this possible?