-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import-D365AadUser SQL error #36
Comments
That's interesting, I didn't noticed or heard of that. But it seems correct. For each table there is a new sequence in SQL Server and a constraint for the RecID field to default the value from the sequence. |
Interesting! @valerymoskalenko Could you try and update your .sql script file? To open the correct sql script file
Content to copy & paste into "add-aaduserintod365fo.sql"
|
Hi, Looks like wrong SQL script. I have no issues when inserting a new user into USERINFO table. I have an issue on inserting into SECURITYUSERROLE table. Please find the corrected SQL script Set-AadUserSecurityInD365FO.sql below
|
Moved to #38 as a general fix for every insert with the tool |
I get below exception -
The command I ran is below: Am I missing something obvious? Please advise. |
Hi The Command uses either -userlist or -aadgroupname. Try using the get-help |
Import-D365AadUser -Users "Claire@contoso.com","Allen@contoso.com" That is the correct syntax. Please make sure you use the latest module, When in doubt about any command, simply put Get-Help in front of any command. E.g. |
When I try to run
Import-D365AadUser -UserList $UserEmail -Verbose
I have got the following
Looks like SQL code is OK for AX2012, but for D365FFO you don't need anymore to retrieve the next RecId. Just insert a new row and SQL will automatically increment RecId field.
The text was updated successfully, but these errors were encountered: