Hello All,
Can we create user dynamically via coding. Because while creating a Test Codeunit i needs to test either database has already user or not, If there is no user then it will get created automatically with their windows account.
Answers and suggestions will be appreciated.
*This post is locked for comments
I have done the above problem with another solution, Anyway thanks for your valuable time.
Use the New-NAVServerUser cmdlet to create the users, you can execute the powershell command using the code, please check the below blog how to execute powershell from CAL
blogs.msdn.microsoft.com/.../coffee-break-use-the-powershell-runner-add-in
You can use POwershell and the New-NavServerUser cmdlet:
No other ways are recommended.
Sohail Ahmed
2
mmv
2
Amol Salvi
2