Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
ik have a problem when trying to import the securtiy rules in a new environmetn.
what have i done:
I've successfully export all the custom security rules with powershell (QLIK-CLI) as a json file.
i copy the json file to the new server.
but when i try to import the security rules 1 rule got imported then i got the following error:
To export i use these code:
" Get-QlikRule -filter "type eq 'Custom' and category eq 'security'" -full -raw | ConvertTo-Json | Out-File D:\temp\QS-Prd\Newsecrules.json"
To import i use this code:
"Get-Content -raw D:\Temp\QS-Prd\\Newsecrules.json |% {$_ -replace '.*"id":.*','' } | ConvertFrom-Json | Import-QlikObject -Verbose"
Does any one have an idea and can help me with this problem.
I've also added the core.ps1 script (as tekst) witch gives the error.
Kind regards
I found the reason/issue.
You cannot use the QLIK-CLi command to import security rules that has TAGS or Custom properties configured.
All other Security rules without additional config (Tags or Custom properties) are successfully imported.
This is by design. The working of the Qlik- Cli command.
Hello @Jio
Its failing because lack of privileges. Does your user has RootAdmin? Is it the same user you are logged to the machine you are running QLIK-CLI ?
BR,
Eduardo Monteiro
Eduardo Monteiro - Senior Support Engineer @ IPC Global
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
Hello Eduardo,
Yes the user i'am using to import is a ROOTAdmin user. With this user i logged in on the server ansd ther i exeute the QLIK-CLI commands
I found the reason/issue.
You cannot use the QLIK-CLi command to import security rules that has TAGS or Custom properties configured.
All other Security rules without additional config (Tags or Custom properties) are successfully imported.
This is by design. The working of the Qlik- Cli command.