Wednesday, January 11, 2017

Error while opening RTC 2017: You do not have the following permissions on CodeUnit ApplicationManagement: Execute

Error: 


You do not have the following permissions on CodeUnit ApplicationManagement?

Execute in NAV 2017?

With new installation of MS Dynamics NAV 2017, you have stuck on this Error to resolve it follow :
Open Powershell of MS Dynamics NAV 2017.




Type this command by replacing your domain ID in line 1

$objUser = New-Object System.Security.Principal.NTAccount(" ")
$strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier])
$strSID.Value


Press Enter you will receive SID ,Please copy it.



Open your SSMS SQL Server Management Studio.
and select the DB and click on New Querry at the TOP. and Paste this Querry.
Put in your SSID and run the querry.


DECLARE @USERSID uniqueidentifier, @WINDOWSSID nvarchar(119), @USERNAME nvarchar(50), @USERSIDTXT varchar(50)
SELECT NEWID()
SET @USERNAME = 'YMI\VE00'
SET @USERSID = NEWID()
SET @USERSIDTXT = CONVERT(VARCHAR(50), @USERSID)
SET @WINDOWSSID = 'S-1-5-21-1840235955-2410550965-3881810730-44149'

INSERT INTO [dbo].[User]
([User Security ID],[User Name],[Full Name],[State],[Expiry Date],[Windows Security ID],[Change Password],[License Type]
,[Authentication Email],[Contact Email])

VALUES
(@USERSID,@USERNAME,'',0,'1753-01-01 00:00:00.000',@WINDOWSSID,0,0,'','VE00@global.com')

INSERT INTO [dbo].[User Property]

([User Security ID],[Password],[Name Identifier],[Authentication Key],[WebServices Key],[WebServices Key Expiry Date],
[Authentication Object ID])

VALUES

(@USERSID,'','','','','1753-01-01 00:00:00.000','')
INSERT INTO [dbo].[Access Control]
([User Security ID],[Role ID],[Company Name])
VALUES
(@USERSID,'SUPER','')
GO




Now Start your NAV 2017 RTC and enjoy the stuff.



Get your Complete CODE here

$objUser = New-Object System.Security.Principal.NTAccount("YourDomain\Your ID")
$strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier])
$strSID.Value

USE [DATABASE NAME]
DECLARE @USERSID uniqueidentifier, @WINDOWSSID nvarchar(119), @USERNAME nvarchar(50), @USERSIDTXT varchar(50)

SELECT NEWID()
SET @USERNAME = 'YourDomain\Your ID'
SET @USERSID = NEWID()
SET @USERSIDTXT = CONVERT(VARCHAR(50), @USERSID)
SET @WINDOWSSID = 'Your SSID'

INSERT INTO [dbo].[User]

([User Security ID],[User Name],[Full Name],[State],[Expiry Date],[Windows Security ID],[Change Password],[License Type]
,[Authentication Email])
VALUES
(@USERSID,@USERNAME,'',0,'1753-01-01 00:00:00.000',@WINDOWSSID,0,0,'')

INSERT INTO [dbo].[User Property]
([User Security ID],[Password],[Name Identifier],[Authentication Key],[WebServices Key],[WebServices Key Expiry Date],
[Authentication Object ID])

VALUES
(@USERSID,'','','','','1753-01-01 00:00:00.000','')
INSERT INTO [dbo].[Access Control]
([User Security ID],[Role ID],[Company Name])

VALUES
(@USERSID,'SUPER','')
GO

No comments:

Post a Comment